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

Bart Lateur <bart.lateur@pandora.be> writes:

> So, if I get this correctly, it is not legal to put text, or inline
> elements (text formatting, SPAN) directly into a BODY tag.


I'm too lazy to check, but that's my recollection too. Also, IIRC the
w3c HTML validator will warn on these cases.

> 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 doing it wrong. But since it mostly works, they'll keep on
doing it. This also goes for all the other places where non-blocks
aren't allowed.

--
Joost Diepenmaat | blog: http://joost.zeekat.nl/ | work: http://zeekat.nl/
  Réponse avec citation
 
Page generated in 0,51350 seconds with 9 queries