Articles → HTML 5 → hgroup in HTML5

hgroup in HTML5






Purpose





Syntax


<hgroup>.. list of more than one headings</hgroup>



Example


<html>
  <head>
    <title>hgroup Demo</title>
  </head>
  <body>
    <hgroup>
      <h1>Main heading</h1>
      <h2>Sub heading</h2>
    </hgroup>
  </body>
</html>



Output



Click to Enlarge


Browser support


Internet ExplorerFirefoxChromeSafariOperaEdge
9.04.05.04.111.1Yes



Video





Posted By  -  Karan Gupta
 
Posted On  -  Friday, November 4, 2016
 
Updated On  -  Thursday, January 3, 2019

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250