Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Root element specified by DTD ? >Thread Next - Re: Root element specified by DTD ? Re: Root element specified by DTD ?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 | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
