我正在通过W3C验证运行我的XHTML文件,出现了一个错误。但是,我无法理解错误--它说,“范围内没有p元素,但看到了p结束标记”。
有些有新鲜眼睛的人能看到吗?
这是我的代码:
<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>发布于 2015-09-01 13:50:31
blockquote元素不能在P元素中。它是无效的HTML。虽然如果您已经在目标浏览器中进行了测试,并且没有什么问题,我不会太担心,验证只是一个指南,不应该被太严格地理解(IMO)
https://stackoverflow.com/questions/32333356
复制相似问题