"Doctype Override In Effect"

The W3 validator says:<br />
<br />
DOCTYPE Override in effect! Any DOCTYPE Declaration in the document has been suppressed and the DOCTYPE for 鐛篢ML 4.01 Transitional?inserted instead. The document will not be Valid until you alter the source file to reflect this new DOCTYPE. <br />
<br />
<br />
Here's the code in the HEAD area:<br />
<br />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><br />
<br />
<br />
<html><br />
<head><br />
<title><?=[ - Nitrox.co.nr - ] \></title><br />
<br />
<style type="text/css"><br />
A:link { color: #535353; text-decoration: underline; }<br />
A:visited { color: #535353; text-decoration: underline }<br />
A:hover { color: #535353; text-decoration: none; }<br />
body,td{ color: #333333; font-family: arial; font-size: 12px; }<br />
body{ background-color: #FFFFFF; margin-top: 0; margin-left: 0; margin-width: 0; margin-height: 0; }<br />
.nlink{ color: #838383; font-size: 10px; font-weight: bold; }<br />
.heading{ color: #535353; font-weight: bold; }<br />
.inside{ color: #656565; font-size: 11px; line-height: 15px; }<br />
.td.bg1{ background-image:url(images/topbg.gif) }<br />
.td.bg2{ background-image:url(images/topbar.gif) }<br />
.td.bg3{ background-image:url(images/line.gif) }<br />
</style><br />
<br />
<META HTTP-EQUIV="Content-Type" content="text/html; charset=iso-8859-1"><br />
<META HTTP-EQUIV="Content-Language" CONTENT="en-us"><br />
<META content="Michael S" name=Author><br />
<META content="Copyright ?2003 Nitrox.co.nr" name=copyright><br />
<META content="-" name=keywords><br />
<META content="-" name=description><br />
</head><br />
<br />
Does anyone know the problem? Thanks,<br />
<br />
<br />
Technel<!--content-->You ticked the box on the Validator to ignore the DOCTYPE in the HTML page itself and force the validator to treat the code as HTML 4.01 Transitional.<br />
<br />
You overrode the declaration contined in the page. If the page initially did not have a DOCTYPE then the only way to valdate it is to tick the box (There is another box for the Content-Type character encoding too). If you later add a DOCTYPE to the code, then you het the message that you saw.<br />
<br />
Untick the box and the validator will check the page based on the DOCTYPE in the HTML code itself.<br />
<br />
<br />
<br />
<br />
In your code, go back and "quote" the attribute values.<br />
<br />
<br />
<br />
<br />
You should export the CSS to an external file and call it with instructions in the <head> section of the HTML file. Most people use this one, but it can cause problems:<br />
<br />
<link type="text/css" rel="stylesheet" src=http://www.htmlforums.com/archive/index.php/"/path/file.css"><br />
<br />
It is better to use this slightly longer version of this, again placed in the <head> section of the HTML file:<br />
<br />
<meta http-equiv="Content-Style-Type" content="text/css"><br />
<br />
<style type="text/css"><br />
@import url(path/file.css);<br />
</style><br />
<br />
This version hides the CSS from older versions of Netscape that cannot handle CSS. This stops those versions from displaying a corrupted page with overlapping elements.<!--content-->Hey, it worked! Thanks a billion!<br />
<br />
<br />
Technel<!--content-->if anyone knows about the validator it's giz :P<!--content--><---- I resemble that remark :D<!--content-->
 
Back
Top