Using the hgroup Element to Create a Title with a Subtitle - HTML CSS HTML Tag

HTML CSS examples for HTML Tag:hgroup

Description

Using the hgroup Element to Create a Title with a Subtitle

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
   <head> 
      <title>Example</title> 
      <style>
h1, h2, h3 {<!--from   w ww  .java  2 s. co  m-->
   background: grey; color: white;
}
hgroup > h1 {
   margin-bottom: 0px;
}
hgroup > h2 {
   background: grey;
   color: white;
   font-size: 1em;
   margin-top: 0px;
}

      </style> 
   </head> 
   <body> 
      <hgroup> 
         <h1>HTML</h1> 
         <h2>Introduction</h2> 
      </hgroup>
       HTML content. 
      <h2>Element</h2>
       HTML element details 
      <h3>More information</h3>
       More information goes here.  
   </body>
</html>

Related Tutorials