Is the <p> tag a block level element in XHTML?

I know that in HTML4.0

<p>
Tag

not a block level element. How about in XHTML 1.0?

thank

This is the link for HTML4.0 http://www.w3.org/TR/html401/struct/text.html

The P element is a paragraph. It cannot contain block level elements (including P itself).

Was this a misinterpretation?

+3
source share
2 answers

As far as I know, pthis is a block-level element that goes back to at least HTML 3.2.

, : , , . H1-H6 (), P () LI ( ) HR ( ). EM, I, B FONT ( ), A ( ), IMG APPLET ( ) BR ( ). , ( ), . .

http://www.w3.org/TR/REC-html32

XHTML 1.0 , HTML 4.01, . - "" (, , ), :

  • XHTML,

:

P . ( P).

, p , , , .

+6

P . ( P).

, P ( DIV). P , P P.

+2

Source: https://habr.com/ru/post/1758483/


All Articles