/    Sign up×
Community /Pin to ProfileBookmark

W3C validation

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

[code]
<?php include(“header.html”); ?><?php include(“menubar.html”); ?><?php include(“footer.html”); ?>
[/code]

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

to post a comment
HTML

7 Comments(s)

Copy linkTweet thisAlerts:
@the_treeMar 19.2006 — 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.
Copy linkTweet thisAlerts:
@kprocauthorMar 19.2006 — W3C issue

# Error Line 19 column 2: "DOCTYPE" declaration not allowed in instance.



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

&#9993;

# 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
Copy linkTweet thisAlerts:
@LiLcRaZyFuZzYMar 19.2006 — 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
Copy linkTweet thisAlerts:
@kprocauthorMar 19.2006 — 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>
Copy linkTweet thisAlerts:
@the_treeMar 19.2006 — Surely that is self explanatory?
Copy linkTweet thisAlerts:
@LiLcRaZyFuZzYMar 19.2006 — replace it with style="border: none;"
Copy linkTweet thisAlerts:
@kprocauthorMar 19.2006 — Thank you for the post LiLcRaZyFuZzY's. all is working well.
×

Success!

Help @kproc spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.5,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...