我正在尝试用HTML5构建一个布局,在阅读了几篇不同的文章后,我感到很困惑。我正在尝试获得一些关于如何使用它的输入。
下面是我反复使用的变体:
1)
<section id="content">
<h1>Heading</h1>
<div id="primary">
Some text goes here...
</div>
</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>
标记的正确方法是什么?
https://stackoverflow.com/questions/7183132
复制相似问题