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


/Jelks
Received on Friday, 24 March 2000 13:13:00 GMT

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