I know that in HTML4.0
<p>
tag is not a block-level element. What about in XHTML 1.0?
Thank you
This is the reference for HTML4.0 http://www.w3.org/TR/html401/struct/text.html
The P element represents a paragraph. It cannot contain block-level elements (including P itself).
Was that my misinterpretation?
As far as I know,
p
is a block-level element going back to at least HTML 3.2.http://www.w3.org/TR/REC-html32
And XHTML 1.0 is really the same exact thing as HTML 4.01 except less lenient. Meaning the elements serve the same purpose, are the same "level" ( block, inline, table ), just these rules apply:
EDIT:
This just means that the
p
cannot own other block level elements inside, meaning because it is block-level it cannot contain itself.This means that the P element is a block level element, and that it cannot contain other block level elements (such as DIV). Since P is itself a block level element, you cannot put a P inside another P.