Validating a website

Thing is index php contains no "html" - it is purely php where it calls other files, hence my query about identifying where these errors lie and in which file that was called.
 
Since the first two are errors right at the top of the page I'd follow through the PHP and see which page gets called first, and then find the footer page to add in a </html> tag :)
 
Beansprout said:

What he said, just go through the included pages finding where you see similar code, for instance as beansproat said, two of the errors are in the page document type declaration so that would be in the top included page I guess or the first page with HTML in it.

The last error would be in the last page that has HTML in it as it is the closing HTML tag.

Thanks...
 
You could include html comments at the start/end of your template pages - then when the validator says say "error line XX" just open view your generated HTML source, go to line XX and look at the comments to see which template its in.
 
Back
Top Bottom