- From: Ian Jacobs <ij@w3.org>
- Date: Wed, 28 Jul 1999 11:25:15 -0400
- To: lcastro@cookwood.com
- Cc: www-html-editor@w3.org
lcastro@cookwood.com wrote: > > Or at least an inconsistency: > > In section 7.4.2, it says > > "Every HTML document _must_ have a TITLE element in the HEAD section." > > But in section 7.4.1, it says that the HEAD section is optional (both the > opening and closing tags). > > That doesn't seem to jibe. The HEAD section is not optional. The DTD says: <!ELEMENT HTML O O (%html.content;) -- document root element --> <!ENTITY % html.content "HEAD, BODY"> which means that in an HTML document, both HEAD and BODY sections are mandatory and must appear in that order. While the section is mandatory, the start and end tags for HEAD are optional. This makes it difficult for browsers to detect where the head ends and content starts. So the spec doesn't say that the HEAD section is optional, only the start and end tags. I hope this helps. - Ian -- Ian Jacobs (jacobs@w3.org) http://www.w3.org/People/Jacobs Tel/Fax: +1 212 684-1814
Received on Wednesday, 28 July 1999 11:26:02 UTC