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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:40 GMT