English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
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 ‹/›
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 title elements.
When there are multiple levels of titles (subtitles), the <hgroup> element is used to group a series of <h1> - <h6> Elements Grouping
The <hgroup> Tag is an HTML 5 New Tags in
Support for <hgroup> Tag Global Attributes of HTML.
Support for <hgroup> Tag HTML Event Attributes.