Forum Moderators: open

Message Too Old, No Replies

W3C Validation Shows No DocType Even Though One is Specified

Using Strict

         

wfernley

7:58 pm on Mar 6, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm trying to validate my new site to make sure it is W3C Compliant and cross-browser compliant. I was able to get rid of all the errors in the W3C but it still says no DocType is being specified even though the first line of my site has:

<!doctype HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

Does anyone know why? :)

Thanks in advance for your help!

Wes

Little_G

8:16 pm on Mar 6, 2007 (gmt 0)

10+ Year Member



Hi,

It's case sensitive, try:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

Andrew

[edited by: Little_G at 8:16 pm (utc) on Mar. 6, 2007]

wfernley

8:57 pm on Mar 6, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yup that worked :)

It still says it could not find the character encoding though and defaulted to UTF-8. Is my DOCTYPE missing something?

rocknbil

9:26 pm on Mar 6, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Got meta? :-)

<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">

However that may not be the encoding you want to specify, heres' how you make that decision [webmasterworld.com].

wfernley

9:48 pm on Mar 6, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Great! Thanks for the link :)