How works HGROUP Tag in HTML || HTML HGROUP Tag
×

HTML HGROUP (<hgroup>) Tag

2724

The <hgroup> tag is there to mention all headings of a HTML document. It is used to group heading tag(<h1>-<h6>). <h1>-<h6> tag has multiple levels so it is used as subheadings, alternative titles, or taglines.

Program:

<!DOCTYPE html>
<html>
<head>
<title>HTML tag</title>
</head>
<body>
<hgroup>
  <h1>This is a main heading</h1>
  <h2>This is sub-heading</h2>
</hgroup>
</body>
</html>

Output:




Best WordPress Hosting


Share:


Discount Coupons

Get a .COM for just $6.98

Secure Domain for a Mini Price



Leave a Reply


Comments
    Waiting for your comments