English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
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.
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 ‹/›
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.
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.
The <hgroup> tag is an HTML 5 new tags.
Support for <hgroup> tag Global attributes of HTML.
Support for <hgroup> tag HTML event attributes.