HTML5 hgroup tag, Example of <hgroup> tag in html5


 

HTML5 hgroup tag, Example of <hgroup> tag in html5

In this illustration we will discuss about the <hgroup> tag in html5.

In this illustration we will discuss about the <hgroup> tag in html5.

HTML5 hgroup tag, Example of <hgroup> tag in html5

In this illustration we will discuss about the <hgroup> tag in html5. This tag is used for defining the group of titles, subtitles, headings etc in a html document and also used to group set of <h1>-<h6> headers in a section or document. This tag is used when heading of a section or document is  having mutiple levels of sub headings. The <hgroup> tag contains only high ranking text headers <h1>-<h6> and nothing else.

Declaration Syntax:

The syntax for this tag is as:

<hgroup>Header Tags Here </hgroup>

This tag has no specific attribute.

Example:hgroup_tag.html.

<!DOCTYPE html>
<html>
  <head>
      <title>Example of hgroup Tag</title>
  </head>
  <body>
  <b>This is example of hgroup tag.</b><br>
  <hgroup>
        <h1>Java Devlopment IDE</h1>
         <h2>My Ecllipse</h2>
         <h2>Net Beans</h2>
  </hgroup>
  </body> 
</html>

Output:

Download This Example:

Difference between HTML5 and HTML4

This is the new introduction in html5.

Ads