Afficher un message
Vieux 08/04/2008, 21h21   #4
Nick Theodorakis
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: question about the BODY tag in the HTML DTD

Bart Lateur wrote:
> In the DTD of HTML 4.01, <http://www.w3.org/TR/html401/sgml/dtd.html>,
> it states that the only legal elements in the BODY element are block
> tags (and a few more: SCRIPT, INS and DEL):


[...]

>
> So, if I get this correctly, it is not legal to put text, or inline
> elements (text formatting, SPAN) directly into a BODY tag. None of these
> tags are implied. Yet, people do it all the time.
>
> What gives? Am I misunderstanding the spec, or a people doing it wrong?
>


People are either doing it wrong, or else using a transitional doctype
where it is allowed.

Nick


--
Nick Theodorakis
nick_theodorakis@hotmail.com
contact form:
http://theodorakis.net/contact.html
  Réponse avec citation
 
Page generated in 0,04994 seconds with 9 queries