English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML 参考手册

HTML 标签大全

HTML: <hgroup> Tag

HTML <hgroup> Element (HTML Headings Group Element) 代表一个段的标题。它规定了在文档轮廓里(the outline of the document )的单一标题是它所属的隐式或显式部分的标题。

在线示例

使用 <hgroup> 对标题进行组合:

!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>HTML5 hgroup标签的使用(基础教程网 oldtoolbag.com)</title>
</head>
<body>
<header>
  <img src="/static/images/logo.png" alt="Logo">
</header>
<hgroup>
  <h1>Main title</h1>
  <h2>Secondary title</h2>
</hgroup> 
</body>
</html>
Test to see ‹/›

Browser Compatibility

IEFirefoxOperaChromeSafari

IE 9Firefox, Opera, Chrome and Safari support the <hgroup> tag.

Note:IE 8 Or earlier versions of IE browsers do not support the <hgroup> tag.

Tag Definition and Usage Description

The <hgroup> Tag is used to group title elements.

When there are multiple levels of titles (subtitles), the <hgroup> element is used to group a series of <h1> - <h6> Elements Grouping

HTML 4.01 And HTML5Differences Between

The <hgroup> Tag is an HTML 5 New Tags in

Global Attributes

Support for <hgroup> Tag Global Attributes of HTML.

Event Attributes

Support for <hgroup> Tag HTML Event Attributes.