简体   繁体   English

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

[英]w3c validator gives me : Error: No p element in scope but a p end tag seen. another question can i nest a block level element inside another one?

this is the part of the code that the error in and idont know what the fault did i do here ?这是错误的代码部分,我不知道我在这里做错了什么?

<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>

Add </li> in the end of each <li> .在每个<li>的末尾添加</li> <li> Also inside the <ol> you do not need a <p>...</p>同样在<ol>您不需要<p>...</p>

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用时 <p class=xxx> 我在W3C合规性检查器上收到响应“范围内没有p元素,但看到ap结束标签。” - When using <p class=xxx> I am getting the response “No p element in scope but a p end tag seen.” on W3C compliance checker 范围内没有p元素,但看到了p结束标记.w3c验证 - No p element in scope but a p end tag seen.w3c validation 联系表格 7:scope 中没有 p 元素,但看到了 ap 结束标记 - Contact Form 7 : No p element in scope but a p end tag seen W3C验证程序:“看到一个开始标记,但是相同类型的元素已经打开。” - W3C validator: “Start tag a seen but an element of the same type was already open.” W3C HTML验证错误:“流浪结束标记 </head> ”和“开始标签 <body> 看到了,但是相同类型的元素已经打开了” - W3C HTML validation errors: “Stray end tag </head>” and “Start tag <body> seen but an element of the same type was already open” data-role =“ form”在W3C验证程序中给出错误 - data-role=“form” gives error in W3C Validator W3C验证器错误 - W3C Validator Error W3C标记验证符&符错误 - w3c markup validator ampersand (&) error W3C验证器:元素头缺少子元素标题的必需实例 - W3C validator : Element head is missing a required instance of child element title 此时,元素li上的属性ddata-horizo​​ntalposition不允许-w3c验证程序 - Attribute ddata-horizontalposition not allowed on element li at this point- w3c validator
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM