Skip to content

<h5> - Level 5 Heading

Block-level HTML 1.0

The <h5> element represents a fifth-level heading, used for very detailed subsections within <h4> sections. It’s typically reserved for highly structured, complex documents.

Result
<h5>Very Specific Subsection</h5>

The <h5> element creates fine-grained subsection headings beneath <h4> headings.

The <h5> element supports all global attributes like id, class, style, and lang.

<h5 id="subsection-detail" class="minor-heading">Detail</h5>
Result
Result
Result
Result

Instead of deep heading hierarchies, consider:

<h4>Configuration Options</h4>
<dl>
<dt>timeout</dt>
<dd>Maximum wait time in milliseconds</dd>
<dt>retries</dt>
<dd>Number of retry attempts</dd>
<dt>cache</dt>
<dd>Enable response caching</dd>
</dl>

Always maintain the complete hierarchy:

<h1>Main Title</h1>
<h2>Chapter</h2>
<h3>Section</h3>
<h4>Subsection</h4>
<h5>Detail</h5>
Result

At this level, consider subtle visual differences:

Result
Result

Screen readers announce heading levels, but deep hierarchies can be confusing:

<!-- Screen reader: "Heading level 5: Implementation Details" -->
<h5>Implementation Details</h5>
<h4>Array Methods</h4>
<p><strong>map():</strong> Transforms each element</p>
<p><strong>filter():</strong> Selects matching elements</p>
<p><strong>reduce():</strong> Combines into single value</p>

Users navigating by headings may find 5+ levels overwhelming:

<!-- Comprehensive technical documentation -->
<h1>API Reference Guide</h1>
<h2>Authentication</h2>
<h3>OAuth 2.0</h3>
<h4>Authorization Code Flow</h4>
<h5>Step 1: Authorization Request</h5>
<h5>Step 2: Token Exchange</h5>
<h5>Step 3: Refresh Token</h5>
  • Documentation: May need h5
  • Tutorials: Usually h1-h4 sufficient
  • Blog posts: Rarely need beyond h3
  • Marketing pages: Usually h1-h3 only
BrowserVersionNotes
Chrome1+Full support
Firefox1+Full support
Safari1+Full support
Edge12+Full support
IE3+Full support

The <h5> element has been supported since the earliest browsers.