据我所知,这是对的:
<div> <p>some words</p> </div>
但这是错误的:
<p> <div>some words</div> </p>
第一个可以通过w3c验证器(xhtml 1.0),但第二个不能.我知道没有人会像第二个那样编写代码.我只是想知道为什么.那么其他标签的遏制关系呢?
html xhtml
html ×1
xhtml ×1