XHTML 验证
XHTML Validation
我 运行 我的 XHTML 文件通过了 W3C 验证,但出现错误。但是,我无法理解错误 - 它说 "No p element in scope but a p end tag seen"。
有眼力的可以看看吗?
这是我的代码:
<div id="mainBody">
<div id="text">
<p>
<img src="images/billyGraham.png" alt="Billy Graham">
<blockquote>
Billy Graham:<br><br>
Is it not arrogance or narrow-mindedness to claim that there is only one way of salvation or that the way we follow is the right way? I think not. After all, do we fault a pilot for being narrow-minded when he follows the instrument panel [while] landing in a rainstorm? No, we want him to remain narrowly focused!
</blockquote>
</p>
</div>
</div>
blockquote
元素不能在 P
元素内。无效 HTML。尽管如果您已经在目标浏览器中进行了测试并且没有任何问题,我也不会太担心,但验证只是一个指南,不应该过于字面意思 (IMO)
我 运行 我的 XHTML 文件通过了 W3C 验证,但出现错误。但是,我无法理解错误 - 它说 "No p element in scope but a p end tag seen"。
有眼力的可以看看吗?
这是我的代码:
<div id="mainBody">
<div id="text">
<p>
<img src="images/billyGraham.png" alt="Billy Graham">
<blockquote>
Billy Graham:<br><br>
Is it not arrogance or narrow-mindedness to claim that there is only one way of salvation or that the way we follow is the right way? I think not. After all, do we fault a pilot for being narrow-minded when he follows the instrument panel [while] landing in a rainstorm? No, we want him to remain narrowly focused!
</blockquote>
</p>
</div>
</div>
blockquote
元素不能在 P
元素内。无效 HTML。尽管如果您已经在目标浏览器中进行了测试并且没有任何问题,我也不会太担心,但验证只是一个指南,不应该过于字面意思 (IMO)