Why is not allowed inside

后端 未结 2 1079
渐次进展
渐次进展 2020-12-18 20:30

Why can\'t

be nested inside

? What is the correction I could make? Removing the
and

2条回答
  •  一整个雨季
    2020-12-18 21:07

    In HTML it's important to understand that P elements cannot contain other block level elements and TABLE is a block level element. The P closing tag is optional and when you try to make a P element contain something that it cannot contain, the closing P tag is assumed by the browser.

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

    http://www.w3.org/TR/html401/struct/text.html#h-9.3.1

提交回复
热议问题