p div element can not be nested inside the element

p elements can not be nested div, and other block-level elements, and why? I'm baffled. Are seeing a more convincing argument is that plus hands.
Code:

<p>我是p的开始<div>我是div</div><div>我也是div</div>我是p的结束</p>

Browser Analysis:
Here Insert Picture Description
That is, if you put the p elements inside the div element or other block-level elements, p elements will automatically parsed into two p elements, so to say, which can not be put div p element or other block-level elements.

Published 32 original articles · won praise 0 · Views 362

Guess you like

Origin blog.csdn.net/wron_path/article/details/103547975