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

HTML Reference Manual

HTML Tag Directory

HTML: <hgroup> tag

The HTML <hgroup> Element (HTML Headings Group Element) represents a section title. It specifies that a single title in the document outline is the title of the implicit or explicit section it belongs to.

Online Example

Use <hgroup> to combine headings:

<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>HTML5 hgroup label usage (Basic Tutorial Website 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.

Definition and usage of tags

The <hgroup> tag is used to group heading elements.

When there are multiple levels of headings (subtitles), the <hgroup> element is used to group a series of <h1> - <h6> elements for grouping.

HTML 4.01 with HTML5differences

The <hgroup> tag is an HTML 5 new tags.

Global attributes

Support for <hgroup> tag Global attributes of HTML.

Event attributes

Support for <hgroup> tag HTML event attributes.