w3c验证器给我:错误:范围内没有p元素,但看到了p结束标记.另一个问题,我可以将一个块级元素嵌套到另一个块级元素中吗?



这是代码中出现错误的部分,我不知道我在这里做了什么错误

<ol>
<p>
<li> <em> Markup </em>is just a text that has a special meaning also it tellls the browser what the text should look like or how its arranged 

</p> it says that this closing hasnt any opening tag
<p>
<li> elements with no contents in it are called "void elements" or "empty elements" 

</p>
</ol>

在每个<li>的末尾添加</li>。同样在<ol>内部,你不需要<p>...</p>

相关内容

  • 没有找到相关文章