Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

HTML5 <hgroup> tag


May 03, 2021 HTML5


Table of contents


HTML5 uses a combination of the titles with slt;hgroup:

<hgroup>
<h1>Welcome to my WWF</h1>
<h2>For a living planet</h2>
</hgroup>

<p>The rest of the content...</p>
Try it out . . .

Browser support

HTML5 <hgroup> tag HTML5 <hgroup> tag HTML5 <hgroup> tag HTML5 <hgroup> tag HTML5 <hgroup> tag

IE 9, Firefox, Opera, Chrome, and Safari support the hashtags.

Note: IE 8 or earlier versions of IE browsers do not support the hashtag.


Label definition and instructions for use

Labels are used to group title elements.

When the title has multiple levels (subtitles), the elements are used to group a series of elements.


The difference between HTML 4.01 and HTML5

The label is the new label in HTML 5.


Global properties

The label supports the global properties of HTML.


The event property

The tag supports the event properties of HTML.


Note: This element has been removed from the HTML5 (W3C) specification, but it is still in the HTML version of WHATWG. M ost browsers are partially implemented, so it is unlikely to disappear. H owever, its outline algorithm is not implemented in any browser, so the semantics are still theoretical. The HTML5 (W3C) specification provides recommendations on how to handle subtitles, subheadings, alternative titles, and taglines.