|
Posted by Paul Ding on 01/13/06 22:45
On Fri, 13 Jan 2006 10:37:37 -0500, GreyWyvern <spam@greywyvern.com>
posted something that included:
>According to the spec, empty <p></p> tags should be ignored completely.
What specification are you talking about? It does NOT say that in the
current HTML/4.01 specification, nor in any prior specification for
HTML.
Some browsers will collapse a series of multiple <br> and <p> tags
into a single <p> tag, and a series of multiple <br> tags into a
single <br> tag. Others will not. The HTML specification does not
specify which is the correct behavior.
If you interpret the <br> tag as meaning "no more on this line" and
the <p> tag as meaning "no more on this line or a certain amount of
vertical space below this line", then collapsing the tags makes sense.
If you interpret the <br> tag as meaning "move to the next line", and
the <p> tag as meaning "move down a bit and then move to the next
line", then producing greater vertical space due to the repetition
doesn't.
And since the HTML specification doesn't say which is the proper
interpretation, browser writers are free to use either interpretation.
The </p> tag is ignored in HTML. The effect of attributes to a <p> tag
last until the tag of that level.
--
If we're losing 40-130 species a day,
How come nobody can itemize them?
And why can't fruitflies be one of them?
[Back to original message]
|