HTML5 <hgroup>标签

定义和用法

<hgroup> 标签用于对网页或区段(section)的标题进行组合。

当标题有多个层级(副标题)时,<hgroup> 元素被用来对一系列 <h1> - <h6> 元素进行分组

实例

使用 <hgroup> 标签对网页或区段(section)的标题进行组合:

<hgroup>
  <h1>Welcome to my WWF</h1>
  <h2>For a living planet</h2>
</hgroup>

<p>The rest of the content...</p>

html 4.01 与 html 5 之间的差异

<hgroup> 标签是 HTML 5 中的新标签。

提示和注释

提示:请使用 <figcaption> 元素为元素组添加标题。