我希望这个问题不要太笼统,但我需要一个建议:
你认为下列哪一个例子是正确的?
编号1
<article>
<section>
<header>
<h1>Title</h1>
</header>
<p>Content</p>
<h2>Title 2</h2>
<p>Content</p>
<footer>
<p>footer</p>
</footer>
</section>
</article>编号2
<article>
<section>
<header>
<h1>Title</h1>
</header>
<p>Content</p>
<header>
<h2>Title 2</h2>
</header>
<p>Content</p>
<footer>
<p>footer</p>
</footer>
</section>
</article>编号3
<article>
<section>
<header>
<h1>Title</h1>
</header>
<p>Content</p>
<footer>
<p>footer</p>
</footer>
</section>
<section>
<header>
<h2>Title</h2>
</header>
<p>Content</p>
<footer>
<p>footer</p>
</footer>
</section>
</article>我更喜欢第一个例子,但我不完全确定:/
发布于 2011-10-14 16:58:47
1和2是等价的。想用哪种就用哪种。由<h2>启动的隐式节位于显式部分内。
3是语义上的不同。第二节中的<h2>与第一节中的<h1>排序相同,这两个部分是对等的。
https://stackoverflow.com/questions/7761177
复制相似问题