How H1, H2, H3, H4, H5, and H6 Display

Headings H3, H4, H5, and H6 are the most common. The code for these headings and how they are displayed is below.

H3 – A shaded box

<h3>Heading 3 Appears in a Shaded Box</h3>

          Heading 3 appears in a shaded box

H4 – Line appears above heading

<h4>Heading 4 Appears With A Line</h4>    

Heading 4 appears with a line

H5 – Contains capital letters

<h5>Heading 5 Has No Line or Shading, Just Letters</h5>

          Heading 5 has no line or shading, just letters

H6 – Similar to heading 3, but slightly smaller

<h6>Heading 6 is Slightly Smaller than Heading 3</h6>

          HEADING 6 is slightly smaller than heading 3

How each heading appears on a live page:

heading one is all caps and has the largest font, heading two is all caps and has a smaller font than h1, heading three is all caps and shaded and has a smaller font than h2, heading four is all caps has a line above it, and is the same size has H2, heading five is all caps and has a smaller font size than h4, heading six is all caps, shaded, and has a smaller font size than H5