W3C home > Mailing lists > Public > www-validator@w3.org > January 2004

Can't get rid of DOCTYPE Override

From: <jdavin@cmu.edu>
Date: Sun, 18 Jan 2004 14:01:51 -0500 (EST)
To: www-validator@w3.org
Message-ID: <Pine.LNX.4.58-035.0401181355290.4808@unix45.andrew.cmu.edu>

This has been really bugging me...

I've gotten my page to validate, but I can't get rid of this message:

DOCTYPE Override in effect! Any DOCTYPE Declaration in the document has
been suppressed and the DOCTYPE for HTML 4.01 Transitional inserted
instead. The document will not be Valid until you alter the source file to
reflect this new DOCTYPE.

When I look at the page code, the validator replaced my DOCTYPE line with
the exact same thing! I'm using this:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

I've tried looking at the html code for w3.org to see how that manages to
not get the doctype override message, but I couldn't figure it out.
I've done several google searches and looked at probably 10+ websites that
explain how to use the doctype declaration. I've followed those
instructions exactly I believe.

Can anyone help me fix this? (not that it's a major error, but I'm a
perfectionist :)).


PS. My header is:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<link REL="SHORTCUT ICON" HREF="favicon.ico">
<LINK REL='stylesheet'  TYPE='text/css' HREF='mystyle.css'>

<title>[jpdavin]: Photos</title>
Received on Sunday, 18 January 2004 14:02:43 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:17:39 UTC