tag is a block-level element in XHTML?

前端 未结 2 607
小鲜肉
小鲜肉 2021-01-21 00:00

I know that in HTML4.0

tag is not a block-level element. What about in XHTML 1.0?

Thank you

This is the reference f

2条回答
  •  臣服心动
    2021-01-21 00:37

    The P element represents a paragraph. It cannot contain block-level elements (including P 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.

提交回复
热议问题