<h5> Heading level 5
Fifth-level heading, used inside an h4 section.
<h5> is the fifth heading level and titles a subsection of an h4 section. Outside long, deeply structured documents such as manuals or specifications, you will rarely see it.
A page that hits h5 often is a hint: maybe the content could be split into separate pages or simplified. And as with any heading, a small default font size is no reason to pick it.
The HTML Living Standard section on headings (opens in a new tab) treats h5 exactly like the other levels. The Headings lesson runs through the whole range.
Syntax
<h5>Fifth-level title</h5>When to use it
Genuinely deep documents need h5: technical manuals, building regulations, terms of service with articles, sections and sub-sections, a course syllabus broken into terms, modules, weeks and activities. Content from a word-processor file with numbered headings like 3.2.1.4 maps h5 to that fourth number without any fuss.
On most other pages, a heading this deep is a sign to restructure. A long run of small titled items may work better as a description list or a table. Short labels next to values, like "Size" or "Color", are not headings at all.
Content management systems put "Heading 1" to "Heading 6" in a menu, and editors pick h5 because it looks like a neat small caption. The headings list then fills up with fake sections. Give editors a paragraph style for captions, or take the lowest levels out of the editor menu.
Live example
Edit the code and watch the preview.
<h3>Chapter 2</h3>
<h4>Part A</h4>
<h5>Step 1</h5>
<p>Open the box.</p>
<h5>Step 2</h5>
<p>Remove the packaging.</p>More examples
Terms of service clauses
Legal text often has deeply numbered clauses. Here each number in the clause matches a heading level, so clause 3.1.1.1 is an h5. The numbering in the text and the heading levels tell the same story.
<h2>3. Payments</h2>
<h3>3.1 Subscriptions</h3>
<h4>3.1.1 Renewal</h4>
<h5>3.1.1.1 Monthly plans</h5>
<p>Monthly plans renew on the same day each month.</p>
<h5>3.1.1.2 Annual plans</h5>
<p>Annual plans renew once a year. We email you 30 days before.</p>Course syllabus
A syllabus naturally has five levels: the course, the term, the module, the week and the activity. Each activity is an h5, so a student using a screen reader can jump from activity to activity inside a week.
<h1>Web Design 101</h1>
<h2>Term 1</h2>
<h3>Module 2: Text</h3>
<h4>Week 3</h4>
<h5>Activity A: Headings</h5>
<p>Outline a recipe page with h1 to h3.</p>
<h5>Activity B: Lists</h5>
<p>Turn the ingredients into a bulleted list.</p>Tip: Levels this deep are rare. If you need them often, simplify the structure.
Browser support
Support for h5 is universal and goes back to the first versions of HTML. Browsers typically draw it smaller than body text by default, a styling choice you can override with CSS. Screen readers report it as heading level 5 and let users jump to that level directly.
Accessibility
Screen reader users can jump directly to a given heading level, so an h5 belongs inside an h4 section and nowhere else. The W3C note Understanding Headings and Labels (opens in a new tab) covers descriptive headings at every level.
Common mistakes
Wrong
<h2>Products</h2>
<h5>Shoes</h5>Right
<h2>Products</h2>
<h3>Shoes</h3>Go down one level at a time. A skipped level breaks the outline.
Frequently asked questions
Is it bad to use h5 and h6 headings?
No. Both are valid and sometimes needed, in long legal documents for instance, or in detailed technical manuals with many nested parts. Ordinary web pages rarely call for them. Use <h5> only where it sits under an <h4> in the structure, and never because its default style happens to be small.
Do h5 headings help SEO?
Not specially. Headings at every level help search engines see how a page is organised, but lower levels carry no extra ranking value. What counts is accurate, descriptive headings in a logical order. Stuffing <h5> elements with keywords only muddles the structure. The HTML SEO guide explains which on-page signals carry more weight.