!DOCTYPE Broke Me?

I just started trying to validate the page I created using Imageready so the first thing I do is add my DOCTYPE so that the validator can check it. BAM! My table breaks AND my html page no longer sees the .css file the I reference in the <HEAD>. I take out the DOCTYPE:<br />
<br />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"<br />
"http://www.w3.org/TR/html4/loose.dtd"><br />
<br />
and everything works fine. WTF?<br />
<br />
Gulf Coast Fantasy Racing (<!-- m --><a class="postlink" href="http://www.gulfcoastfantasyracing.com">http://www.gulfcoastfantasyracing.com</a><!-- m -->)<!--content-->Try putting your doctype as:<br />
<br />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><br />
<br />
Sometimes the URL on the end of it buggers it up royally in IE, but it still works for validation.<br />
<br />
PEg<!--content-->Yep I removed that line and everything is dandy. Thanks!<!--content-->*g* You're welcome.<br />
<br />
Peg<!--content-->Originally posted by Pegasus <br />
Try putting your doctype as:<br />
<br />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><br />
<br />
Sometimes the URL on the end of it buggers it up royally in IE, but it still works for validation.<br />
<br />
PEg <br />
<br />
That's because the shortened doctype sends IE into 'Quirks Mode'. <br />
Not a good thing, as Quicks Mode can be unpredictable.<br />
<br />
Interesting read about rendering modes:<br />
<!-- m --><a class="postlink" href="http://www.hut.fi/u/hsivonen/doctype.html">http://www.hut.fi/u/hsivonen/doctype.html</a><!-- m --><!--content-->Arctic, if I put the full doctype in, with the URL, IE pukes all over it. Nothing looks the way it should. If I leave out the URL, everything works fine and the page validates correctly.<br />
<br />
Even using the URL in a browser other than IE will look incorrect or the CSS won't be accessible. <br />
<br />
I'm not sure why that is. From the looks of your reference, it's entirely backwards to what's supposed to happen.<br />
<br />
Peg<!--content-->
 
Top