hgroup tag in html5 with example
- The HTML
<hgroup>
tag is used for defining the header of an HTML document or section. - More specifically, it is used to group a set of
<h1>
-<h6>
elements when the heading has multiple levels, such as subheadings, alternative titles, or taglines. - The <hgroup> tag is supported in Internet Explorer 9, Firefox, Opera, Chrome, and Safari. IE8 and earlier versions does not support hgroup element.
Example 1 :
<html>
<head><title>mark tag in html5</title>
</head>
<body>
<hgroup>
<h1>This is h1 element.</h1>
<h3>This is h3 element inside hgroup element.</h3>
</hgroup>
</body>
</html>
Demo :
In the above example, we have shown how to use hgroup element in a document.
0 comments:
Post a Comment