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

HTML HGROUP (<hgroup>) Tag

0 1047

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:




Share:


Leave a Reply


Comments
    Waiting for your comments