Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Root element specified by DTD ?

From: Chris Morris <c.i.morris@------.--.-->
To: NULL
Date: 6/2/2006 2:06:00 PM

Lachlan Hunt <spam.my.gspot@g...> writes:
> Andy Dingley <dingbat@c...> wrote:
> > Is this fragment a valid HTML document ?...
> > <!DOCTYPE div PUBLIC "-//W3C//DTD HTML 4.01//EN"
> > "http://www.w3.org/TR/html4/strict.dtd">
> > <div>
> >     <p>Foo</p>
> > </div>
> 
> Yes, it's valid.  The validator would have told you that.

It's valid, but is it a valid *HTML* document? I think not, since 
http://www.w3.org/TR/html4/struct/global.html
requires HTML documents to have title elements
"Every HTML document *must* have a TITLE element in the HEAD section."

Those requirements can't be fully enforced at the DTD level, but are
in the specification. It's clearly a valid SGML document, but I think
describing it as HTML is dubious.

-- 
Chris


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent