W3C home > Mailing lists > Public > html-tidy@w3.org > January to March 2000

RE: Why is "html" forced to lower case in DOCTYPE?

From: Jelks Cabaniss <jelks@jelks.nu>
Date: Wed, 23 Feb 2000 01:10:55 -0500
To: "HTML Tidy List" <html-tidy@w3.org>
Message-ID: <NBBBICMNIPCICMKJECCBCEIJDGAA.jelks@jelks.nu>
J. David Bryan wrote:

>     Whenever Tidy supplies a corrected DOCTYPE, it produces one such as
> "!DOCTYPE html PUBLIC...", i.e., with the "html" in lower case.
...
>     Can someone please explain why changing this to lower case is
> "correct?"  Thanks.

Because in SGML-based HTML (i.e. 2.0, 3.2, 4.0), the case of the elements
doesn't matter, while in xHTML (which is case sensitive) they *have* to be in
lower case.  Thus lower case satisfies both conditions.


/Jelks
Received on Wednesday, 23 February 2000 01:13:47 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:43 GMT