tag element- hgroup

<hgroup> tag
This tag is added to the new html5. Generally from<h1>  to<h2> tag is used for wrapping element. Multi-header and sub-header in the header of this group to create a useful component.

The syntax is used for this <hgroup> h1 to h6 tag will go here</ hgroup>. However, this component should not be used more than two heading.
syntax:
<hgroup>
<H1> ………………… </ h1>
<H2> ………………… </ h2>
</ hgroup>

Examples:
Save as type codes hgroup.html notepad. Then open the file, you will see output like the following to the right.

Examples styles Supply
<body> tag, insert the following codes above or below the bottom of the output you will see.

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *