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 ? Re: Root element specified by DTD ?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 | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
