簡體   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?

這是錯誤的代碼部分,我不知道我在這里做錯了什么?

<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> <li> 同樣在<ol>您不需要<p>...</p>

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM