Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: Root element specified by DTD ? [Thread Next] Re: Root element specified by DTD ?To: NULL Date: 6/3/2006 12:28:00 AM Chris Morris wrote: > 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. It's a HTML *fragment*. Browsers may gag on it. Properly conformant software won't. ///Peter -- XML FAQ: http://xml.silmaril.ie/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
