Hi,
I have been making some web pages as a hobby. I have learnt the basics of HTML, CSS. PHP and so on. So far i have been able to realize most of the things i have tried but i know that my code is far from best practice.
I have a couple of basic questions.
Regarding headers and footers. Since they look the same and appear on all pages what is the best way to add them to all of my pages?
I have done this with PHP before. Is this the way to do it?
Regarding a main menu. This is also something that i want to appear on all of my pages. However i want the link to the current page to be highlighted. How do i do this dynamically? Previously i have been adding the menu code manually to all of my pages and just changing the class for the link that corresponds to the current page. But it is just so much work every time i want to make a change in the menu having to do it on every page.
I guess this is it for now.
Regards
Rafal