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

Confusion abounds over DOCTYPE syntax

From: dnickell <dnickell@icehouse.net>
Date: Thu, 20 May 2004 04:40:57 -0700
Message-ID: <40AC9949.1E676074@icehouse.net>
To: www-validator@w3.org

I can't validate a simple HTML file because of the DOCTYPE statement according to http://validator.w3.org/ . I used <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" that
I saw on http://www.aumha.org/html/lernhtml.htm , Basics of HTML of May 12, 2004.

There were 3 different formats for that DOCTYPE statement:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"

I have no idea which is proper for a simple Web Page that does nothing but show
an animated GIF as a test.

Interestingly enough URL http://www.aumha.org/html/lernhtml.htm , Basics of HTML 
of May 12, 2004, doesn't validate either.

What gives? Would someone please look at http://nickell.tierranet.com/alttest.html
and tell me what I should have used in order for that page to validate?

Thanks,
Don
dnickell@icehouse.net
Received on Thursday, 20 May 2004 08:01:29 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:13 GMT