在关于构建HTML5的W3 wiki页面中,它说:
<section>:用于将不同的文章分为不同的目的或
主题,或者定义一篇文章的不同部分。
然后显示我清理过的图像:
它还描述了如何使用<article>标签(来自上面的同一个W3链接):
<article> is related to <section>, but is distinctly different.
Whereas <section> is for grouping distinct sections of content or
functionality, <article> is for containing related individual
standalone pieces of content, such as individual blog posts, videos,
images or news items. Think of it this way - if you have a number of
items of content, each of which would be suitable for reading on their
own, and would make sense to syndicate as separate items in an RSS
feed, then <article> is suitable for marking them up.
In our example, <section id="main"> contains blog entries. Each blog
entry would be suitable for syndicating as an item in an RSS feed, and
would make sense when read on its own, out of context, therefore
<article> is perfect for them:
<section id="main">
<article>
<!-- first blog post -->
</article>
<article>
<!-- second blog post -->
</article>
<article>
<!-- third blog post -->
</article>
</section>
简单的哈?请注意,您也可以在其中嵌套部分
文章,这样做是有意义的。例如,如果每一个
这些博客文章有一个一致的结构,不同的部分,然后
你也可以在文章中加入章节。它看起来
就像这样:
<article>
<section id="introduction">
</section>
<section id="content">
</section>
<section id="summary">
</section>
</article>