html - 如何正确使用HTML5标签Article和Section?

标签 html css tags

我有这种结构,但我不知道如何在此模型上正确使用 HTML5 标签,如文章、部分等。

谁能告诉我如何正确包装元素?

enter image description here

最佳答案

把它想象成一个大纲

<section class="Tab1">
    <section class="TabA">
    </section>
    <section class="TabB">
    </section>
</section>
<section class="Tab2">
</section>
<section class="Tab3">
</section>
<section class="Tab4">
</section>

除非您自己以外的作者提供了一些东西,否则不需要文章。

article: An article is like a section, but it's intended for use with external resources. Many pages are built automatically by software, and when these pages integrate content from other sources, it's intended to use the article tag to integrate this content.

Source

关于html - 如何正确使用HTML5标签Article和Section?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21478162/

相关文章:

javascript - 计算所选文本 javascript/JQuery 的位置?

html - 网站在移动设备上渲染出视口(viewport)

javascript - 套索可选禁用 CSS :hover state

html - 图例 CSS 中的居中文本

php - 'undo'这个小函数在PHP中如何实现?

html - 是什么让水平滚动仍然发生在 Android 上?

包含生成的 JSTL : not interpreted 的 Java 自定义标记

Django 。在引号内使用 url 标签,在引号内

JavaScript 边缘效果

html - 如何将 vh 和 vw CSS 用于一页无滚动响应网页?