to
Higher-level headings, more commonly used. Learn more →
<h5> ElementThe <h5> element represents a fifth-level heading, used for very detailed subsections within <h4> sections. It’s typically reserved for highly structured, complex documents.
<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>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><h4>Configuration Options</h4>
<h5>timeout</h5><p>Maximum wait time in milliseconds</p>
<h5>retries</h5><p>Number of retry attempts</p>
<h5>cache</h5><p>Enable response caching</p>Always maintain the complete hierarchy:
<h1>Main Title</h1> <h2>Chapter</h2> <h3>Section</h3> <h4>Subsection</h4> <h5>Detail</h5><h1>Main Title</h1> <h2>Chapter</h2> <h5>Detail</h5> <!-- Skipped h3 and h4 -->At this level, consider subtle visual differences:
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><h4>Array Methods</h4><h5>map()</h5><p>Transforms each element</p><h5>filter()</h5><p>Selects matching elements</p><h5>reduce()</h5><p>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><!-- Simple blog post --><h1>5 Tips for Better CSS</h1> <h2>Tip 1: Use Variables</h2> <h3>Benefits</h3> <h4>Maintainability</h4> <h5>Easier Updates</h5> <!-- Too deep -->| Browser | Version | Notes |
|---|---|---|
| Chrome | 1+ | Full support |
| Firefox | 1+ | Full support |
| Safari | 1+ | Full support |
| Edge | 12+ | Full support |
| IE | 3+ | Full support |
The <h5> element has been supported since the earliest browsers.
to
Higher-level headings, more commonly used. Learn more →
The sixth and final heading level. Learn more →
,
Description lists for term/definition pairs. Learn more →
Emphasize text without adding semantic heading. Learn more →