Doctype??

liunx

Guest
not sure if this is the right forum, but look at THIS (<!-- m --><a class="postlink" href="http://validator.w3.org/check?uri=http%3A%2F%2Fwww.etcgalore.com%2Fprograms.html&charset=iso-8859-1+%28Western+Europe%29&doctype=XHTML+1.0+Transitional&ss=1&outline=1&sp=1&verbose=1">http://validator.w3.org/check?uri=http% ... &verbose=1</a><!-- m -->) all of my subpages for my site are like that, how do i fix the doctype to the correct form and content or whatever?<!--content-->try this one...<br />
<br />
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"<br />
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><!--content-->Or if you have the doc type already in the pages, just leave the doc type setting to auto detect. I've run into that a few times and found its best to let it find the doc type by itself. ;)<!--content-->You'll need a meta description in there for search engines:<br />
<br />
<meta name="Description" content=" some stuff about the page "><br />
<br />
<br />
<br />
<br />
The Content Language is usually done by using:<br />
<br />
<meta http-equiv="Content-Language" content="en-gb"><br />
<br />
and the codes come from ISO 639 for language, and ISO 3166 for country.<!--content-->Here's a list of all HTML/XHTML doctypes:<br />
<!-- m --><a class="postlink" href="http://www.w3.org/QA/2002/04/valid-dtd-list.html">http://www.w3.org/QA/2002/04/valid-dtd-list.html</a><!-- m --><!--content-->Originally posted by dork1337h4x0r <br />
not sure if this is the right forum, but look at THIS (<!-- m --><a class="postlink" href="http://validator.w3.org/check?uri=http%3A%2F%2Fwww.etcgalore.com%2Fprograms.html&charset=iso-8859-1+%28Western+Europe%29&doctype=XHTML+1.0+Transitional&ss=1&outline=1&sp=1&verbose=1">http://validator.w3.org/check?uri=http% ... &verbose=1</a><!-- m -->) all of my subpages for my site are like that, how do i fix the doctype to the correct form and content or whatever? <br />
take this one out<br />
<br />
<!-- <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"> --><br />
<br />
it is erroring on that commented out doctype.<!--content-->>> it is erroring on that commented out doctype <<<br />
<br />
Umm, sort of, but not quite right.<br />
<br />
<br />
<br />
When you view the results of <!-- m --><a class="postlink" href="http://validator.w3.org/check?uri=http%3A%2F%2Fwww.etcgalore.com%2Fprograms.html&charset=iso-8859-1+%28Western+Europe%29&doctype=XHTML+1.0+Transitional&ss=1&outline=1&sp=1&verbose=1">http://validator.w3.org/check?uri=http% ... &verbose=1</a><!-- m --> there appear to be two DOCTYPE entries.<br />
<br />
In fact, the first one is being added by the validator itself, and the second one is the only one that is really on the page, but the validator comments it out. So you should really change the validator settings and update the DOCTYPE on the page from the partial version to the full version.<br />
<br />
The following link currently gives errors, but will not give errors after you have updated the DOCTYPE on the page to be the full version: <!-- m --><a class="postlink" href="http://validator.w3.org/check?uri=http%3A%2F%2Fwww.etcgalore.com%2Fprograms.html&charset=%28detect+automatically%29&doctype=%28detect+automatically%29&ss=1&outline=1&sp=1&verbose=1">http://validator.w3.org/check?uri=http% ... &verbose=1</a><!-- m --><!--content-->
 
Back
Top