我试图用HTML5构建布局,阅读了几篇不同的文章后,我感到很困惑。我正在尝试获取有关应如何使用的信息。
以下是我来回变化的版本:
1)
<section id="content">
<h1>Heading</h1>
<div id="primary">
Some text goes here...
</div>
</section>
您可以使用section标签来充当容器吗?
2)
<div id="content">
<h1>Heading</h1>
<section id="primary">
<article>
<h2>Post Title</h2>
<p>Some text goes here...</p>
</article>
</section>
<section id="primary">
<article>
<h2>Post Title</h2>
<p>Some text goes here...</p>
</article>
</section>
</div>
使用<section>标签的正确方法是什么?
<section>是一个语义标记,而不是诸如此类的通用包装<div>。
