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: Fri, 24 Mar 2000 11:47:13 -0600
To: "HTML Tidy List" <html-tidy@w3.org>
Message-ID: <OF622A69C7.135A895D-ON8625688E.00223E48@rfdinc.com>

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
lower case.  Thus lower case satisfies both conditions.

Received on Friday, 24 March 2000 13:13:00 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:47 UTC