Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Root element specified by DTD ?

From: Lachlan Hunt <spam.my.gspot@-----.--->
To: NULL
Date: 6/2/2006 10:11:00 PM

Andy Dingley <dingbat@c...> wrote:
> What specifies the permitted root element(s) for a document ?   HTML,
> SGML, XHTML or XML ?

Any element may be the root element.  There is nothing in the DTD that 
says which elements may or may not be the root element.  The element 
used as the root element is specified by the DOCTYPE, just like in the 
example you gave.

> 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.

-- 
Lachlan Hunt
http://lachy.id.au/
http://GetFirefox.com/     Rediscover the Web
http://GetThunderbird.com/ Reclaim your Inbox


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