Group Headings with hgroup

Description

The hgroup element allows you to treat multiple header elements as a single item without affecting the outline of your HTML document.

Example

The following code uses the hgroup Element.


<!DOCTYPE HTML>
<html>
<body>
  <hgroup>
    <h1>H1</h1>
    <h2>H2</h2>
  </hgroup>
  <h2>Additional</h2>
  <h3>More information</h3>
    <h1>H1</h1>
    <p>This is a test.</p>
    <h2>H2</h2>
    This is a test.<!--  ww w.j  a  v  a2  s  .  c  om-->
    <h3>H3</h3>
</body>
</html>

Click to view the demo





















Home »
  HTML CSS »
    HTML »




HTML Introduction
HTML Document
HTML Section
HTML Group Content
HTML Text Marker
HTML Table
HTML Form
HTML Embed