HTML HGROUP (<hgroup>) Tag
0 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:
Share:
Comments
Waiting for your comments