<hgroup>: 標題組元素
嘗試一下
屬性
此元素只包含 全域性屬性。
使用說明
<hgroup> 元素允許將標題與任何輔助內容分組,例如副標題、備用標題或標語。這些型別的每種內容都用 <hgroup> 中的 <p> 元素表示。
<hgroup> 本身不會影響網頁的文件大綱。相反,<hgroup> 中允許的單個標題會影響文件大綱。
示例
html
<!doctype html>
<title>HTML Standard</title>
<body>
<hgroup id="document-title">
<h1>HTML: Living Standard</h1>
<p>Last Updated 12 July 2022</p>
</hgroup>
<p>Some intro to the document.</p>
<h2>Table of contents</h2>
<ol id="toc">
…
</ol>
<h2>First section</h2>
<p>Some intro to the first section.</p>
</body>
結果
技術摘要
規範
| 規範 |
|---|
| HTML 標準 # the-hgroup-element |
瀏覽器相容性
BCD 表格只在瀏覽器中載入