簡體   English   中英

為什么不將h4元素嵌套在h3中?

[英]Why shouldn't I nest h4 element inside h3?

為什么不將h4元素嵌套在h3中?
為什么遵循w3c-recommendation很重要? 警告圖片

為什么不將h4元素嵌套在h3中?

考慮打印的文檔:

 h2, h3, h4 { margin-bottom: 0; } h2 + p, h3 + p, h4 + p { margin-top: 0; } 
 <h2>4. I am the main heading of a section</h2> <p>I am an introduction to the section and an overview of the main points that will be covered.</p> <h3>5.3 I am a sub-section heading</h3> <p>I am a sub-section. I cover points in detail.</p> <h4>6.1.2 I am a heading of a sub-section within the sub-section</h4> <p>I am a sub-section within a sub-section. I provide quite deep detail on a particular aspect of the topic under discussion.</p> 

現在考慮將像6.1.2這樣的子標題嵌套在像5.3這樣的子標題中。

考慮將前者實際嵌套在后者中。

你能想象它嗎?

暫無
暫無

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

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