为什么我不应该在h3中嵌套h4元素?
答
为什么我不应该在h3中嵌套h4元素?
想想打印文档:
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 。
考虑将前者嵌入后者中。
你能想象吗?