HGROUP (<hgroup>) Tag

by Jai 06-Jul-19

0 193


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:

HGROUP (<hgroup>) Tag


Share:


Comments

    Waiting for your comments

Leave a Reply