Killersites.com Homepage


Print at Mar 21, 2010 2:03:31 AM

Posted by Thelma at Oct 17, 2007 4:52:41 AM
Re: PHP help with different title and meta tags for each page
I don't understand what the point of an include is, that is different for every page - why not just write it into every page?

Usually, includes are used for stuff that is the same on several pages -navigation, footer, header, - that way ONE file with the navigation is inserted in several pages, and any changes only need to be made in ONE file.

You will have one include for each page - what's the benefit of that?

You also have several errors in your code - the stylesheet link belongs in your head section, not the body, you're using (correctly) HTML doctype (ideally, so, use strict) but, incorrectly, xhtml closing tags ( <br / >, deprecated tags (<font> <center>) and <p>tags are paragraph tags and meant to surround each paragraph - no <br>tags needed inside. And you have several lists that aren't written as lists, but with the <br> tags.
----------------------------------------
...