This reference is built into PageRIJ — a live HTML, CSS & SVG authoring and learning environment.

HTML <h5> element

The <h5> element represents a fifth-level heading. It normally introduces a subsection within a section headed by <h4>. For example, installation instructions headed "Windows" could contain a subsection headed "64-bit builds" using <h5>.

A further subdivision would normally use <h6>, while another <h5> introduces content at the same level. The document can return to a higher rank when these subsections end. When introducing a deeper subsection, advance one rank without skipping a level. Returning to a higher rank can cross several levels when the intervening subsections have ended.

Like the other heading elements, <h5> contains the heading text rather than the content of the whole subsection. Its structural role remains the same when CSS changes its font size or other visual properties. A fifth-level heading can therefore be displayed at whatever size is appropriate for the page's design.

Attributes: GLOBALS.

Typical layout:
<h1>Software guide</h1>
<h2>Getting started</h2>
<h3>Installation</h3>
<h4>Windows</h4>
<h5>64-bit builds</h5>
<p>Use the x64 installer for a 64-bit version of Windows.</p>
Visual representation:

Software guide

Getting started

Installation

Windows

64-bit builds

Use the x64 installer for a 64-bit version of Windows.