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

Re: Confusion abounds over DOCTYPE syntax

From: Frank Ellermann <nobody@xyzzy.claranet.de>
Date: Thu, 20 May 2004 15:19:50 +0200
To: www-validator@w3.org
Message-ID: <40ACB076.4A3B@xyzzy.claranet.de>

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

You want the DOCTYPE for HTML 4 transitional, because your
page isn't XHTML, and it isn't strict.  With validator you
can force a DOCTYPE (use the page with the advanced options).

At the moment your page has no closing ">" in its DOCTYPE.
so this won't work even if you force a DOCTYPE with the
advanced options.  IIRC there's a FAQ about selecting the
DOCTYPE, go to the HTML 4 transitional entry and copy it:

Even for a "public" DTD the validator wants to know where
to find it, but your examples don't include this info.

Here's my "magic" string (you can't use it literally, it's
XHTML transitional, but you'll get the idea of the format):

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

You have the first parts up to ...//EN", now you have to add
a corresponding location of the DTD and the closing >

                            Bye, Frank
Received on Thursday, 20 May 2004 09:22:49 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:17:41 UTC