|
Posted by I V on 10/16/06 04:40
On Sun, 15 Oct 2006 21:36:01 -0400, Jonathan N. Little wrote:
> Whow guys, count to ten, take deep breaths or something! Just for
> clarification in 4.01 strict the HTML, HEAD and BODY elements are all
> optional
I don't think that's quite right. The HEAD _element_ is required,
but neither start nor end tags are required:
--- begin quote ---
<!ENTITY % html.content "HEAD, BODY">
<!ELEMENT HTML O O (%html.content;) -- document root element -->
--- end quote ---
(from http://www.w3.org/TR/html4/sgml/dtd.html#html.content )
> However if you use a TITLE, both opening and closing tag are required
> and is to be within the HEAD.
> http://www.w3.org/TR/html4/struct/global.html#edef-TITLE
The TITLE element is also required:
--- begin quote ---
<!ENTITY % head.content "TITLE & BASE?">
<!ELEMENT HEAD O O (%head.content;) +(%head.misc;) -- document head -->
--- end quote ---
(from http://www.w3.org/TR/html4/sgml/dtd.html#head.content )
And further:
--- begin quote ---
Every HTML document must have a TITLE element in the HEAD section.
--- end quote ---
(from http://www.w3.org/TR/html4/struct/global.html#edef-TITLE )
jojo is quite right here.
Navigation:
[Reply to this message]
|