|
Posted by Jukka K. Korpela on 01/14/06 01:43
Els <els.aNOSPAM@tiscali.nl> wrote:
> If you just enclose your entire page in one div, it might save you
> some code, depending on how many loose images you have in it.
You save more code by using HTML 4.01 Transitional, which allows "loose"
content inside body and does not require all end tags.
If you wish to comply with a Strict DOCTYPE, then it's rather pointless to
use <body><div>...</div></body>, since the _idea_ in Strict is to put text
and inline markup inside _suitable_ blocks. If you don't care about the idea,
you could use Transitional, which does not require the pointless
<div> and </div> tags.
--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html
[Back to original message]
|