So I'm making a website and gonna use a same navigation bar,for instance i want nav and footer to stay there on all the pages, is it necessary to write header and footer code on all the pages?
I use php to bring in these files. I make a header html doc with the doctype.. head and body tags(I use inline styling, but not necessary), then reduce it to something like this called header.html:
If you don't care if the rest of the pages loads when there is a problem with the header or footer files, use 'include' instead of 'require' in the php call.
|All times are GMT +1. The time now is 10:42 PM.|
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.