W3C home > Mailing lists > Public > www-html@w3.org > October 1999

nesting block level elements

From: Alan G. Isaac <aisaac@american.edu>
Date: Fri, 22 Oct 1999 17:04:37 -0400
Message-ID: <3810D165.8CB8A418@american.edu>
To: www-html@w3.org
Is it correct that HTML 4 forbids
nesting other block level elements
in a P element?
How then is one supposed to markup
a paragraph containing several lines
of computer code? 
The obvious coding would be to have a
PRE element nested in the P element.
(The phrase element CODE is not useful 
for this, even if it might be in some 
perverse sense correct.)

If this question is not list-appropriate,
can someone please point me to an 
enlightening discussion elsewhere.

Thank you,
Alan Isaac

PS A similar question arises in the context
of math displays, if these will be block
level (will they?), since these are often 
an integral part of a paragraph.
Received on Friday, 22 October 1999 17:12:04 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:05:51 UTC