Re: Technical information (DTD 4.01) : Is it possible to omit HEAD and/or BODY tags within HTML tag ?

> The HTML tag declaration specifies that HEAD and BODY tags are mandatory
> within the HTML tag itself, and in that specific order, but in the HEAD and
> BODY tags declarations, it's possible to ommit those tags in the HTML
> document ? How can that be ?

These tags are still "there" […], even when you omit them: "A user
agent must ensure that rendering is unchanged by the presence or
absence of start tags and end tags when the HTML DTD indicates that
these are optional" [1] (best spec ref I could find ad hoc).

> Or do you have any detailed DTD editing documentations, references, … I
> could refer to, so I would have all the knowledge to fully understand the
> HTML 4.01 DTD ?

Maybe it's tutorials like W3Schools' DTD section that can help in that regard.


[1] http://www.w3.org/TR/html4/conform.html#h-4.1
[2] http://www.w3schools.com/dtd/

-- 
Jens Meiert
http://meiert.com/en/

Received on Tuesday, 23 September 2008 08:37:47 UTC