Posted by jojo on 10/16/06 07:19
I V 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:
[quote from 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:
[quotes from (from http://www.w3.org/TR/html4/sgml/dtd.html#head.content
and from http://www.w3.org/TR/html4/struct/global.html#edef-TITLE ]
> jojo is quite right here.
Just for the ones who are interested in: a document without a <head> but
a <title> validates fine. A document with a <head> but no <title> or
with neither a head nor a title doesn't. Try it out:
<title> only:
http://validator.w3.org/check?uri=www.hafner-web.de/Jojo/Test/title_only.htm&ss=1
<head> only:
http://validator.w3.org/check?uri=www.hafner-web.de/Jojo/Test/head_only.htm&ss=1
neither <head> nor <title>:
http://validator.w3.org/check?uri=www.hafner-web.de/Jojo/Test/neither_nor.htm&ss=1
[Back to original message]
|