Well, I have not found a way to do it optimally on the internet and I would not like to invent something inefficient or bad structured .
Having said that, I'll explain:
In the case of having a web page with a menu bar above with different sections such as: 'Home', 'Friends', 'About ..', etc. If I'm doing it with chunks of php ... would you have to have a html for each category?
I could not use a single html and go calling different html fragments or I do not know how it would be the most optimal way, because if I did not have to make an html for each menu and submenu and I'm sure there are easier ways.
I just need to know the correct technique