Click to See Complete Forum and Search --> : W3C validation


kproc
03-19-2006, 02:27 PM
Alright
I'm trying to get my website to pass on W3C. I can get it to pas as long as Iremov this section of code and when I put it back in it falls


<?php include("header.html"); ?><?php include("menubar.html"); ?><?php include("footer.html"); ?>


what do I have to do so that it will pass with the code


Top part of webpage
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

my web site uses
CSS
PHP
HTML

thank you

the tree
03-19-2006, 02:36 PM
The PHP, in of itself is irrelevant. The validator will only look at what it recieves which, of course, shouldn't include any PHP.
If you could show us what the validator sees, we'd probably be able to tell you what's wrong.

kproc
03-19-2006, 03:23 PM
W3C issue
# Error Line 19 column 2: "DOCTYPE" declaration not allowed in instance.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"


# Error Line 22 column 5: document type does not allow element "HTML" here.

<HTML>


Web Site

http://www.tomorrownextweek.com/aboutUs.php

thank you for the help

LiLcRaZyFuZzY
03-19-2006, 03:31 PM
You are including 3 independant documents that each have a doctype!
Have a doctype in the main document, but none (and no body and head tags) in the files to include

kproc
03-19-2006, 03:53 PM
Thank you for the info, that help me a lot. Good news, I'm down to one error. it has to do with the header.

does not like

Error Line 35 column 66: there is no attribute "BORDER".

...mages/h.homeSlogan.gif" WIDTH=390 HEIGHT=76 BORDER=0 ALT=""></A></TD>

the tree
03-19-2006, 04:01 PM
Surely that is self explanatory?

LiLcRaZyFuZzY
03-19-2006, 04:07 PM
replace it with style="border: none;"

kproc
03-19-2006, 04:23 PM
Thank you for the post LiLcRaZyFuZzY's. all is working well.