Home Tutorial Html Html5 HTML5 hgroup tag, Example of <hgroup> tag in html5

 
 

HTML5 hgroup tag, Example of <hgroup> tag in html5
Posted on: September 9, 2010 at 12:00 AM
Advertisement
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.

Advertisement

Related Tags for HTML5 hgroup tag, Example of <hgroup> tag in html5:


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: September 9, 2010

Recommend the tutorial

Advertisements Advertisements
 

 

 

DMCA.com