Knowledge baseExam Center
ENEnglish
Choose language13

CKTIS / HTML

h6 — sixth-level heading

The h6 element represents a heading with a base level of 6, not simply small text. Use it for deeply nested subsections, following the document's heading hierarchy.

Version: WHATWG HTML Living Standard; index snapshot date recorded separately

Syntax

<h6>Heading text</h6>

h6 represents a heading with a base level of 6. In an ordinary hierarchy, it labels a subsection beneath an h5 heading. Choose its level for content structure, not letter size.

Do not skip levels when deepening the hierarchy: move from h5 to h6, not directly from h2 to h6. Returning to a lower number is allowed. Nesting section elements alone does not change the level. Under the HTML Living Standard’s rules, the headingoffset attribute can affect the computed heading level. Browser support is limited, so do not rely on it to change the heading level exposed to assistive technologies across browsers.

Its contents must be phrasing content, such as text or em, rather than p paragraphs or other headings. Both tags are required. The element supports global attributes and the HTMLHeadingElement interface.

The example shows an h1–h6 sequence without skipped levels. The output field gives visible text order, not typographic appearance.

Examples

<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>Heading hierarchy</title>
</head>
<body>
  <h1>Manual</h1>
  <h2>Installation</h2>
  <h3>Linux</h3>
  <h4>Configuration</h4>
  <h5>Network</h5>
  <h6>Proxy</h6>
  <p>Use the proxy settings supplied by your administrator.</p>
</body>
</html>

Result

Manual
Installation
Linux
Configuration
Network
Proxy
Use the proxy settings supplied by your administrator.

The displayed code and declared result were verified in an isolated environment using the method recorded in the verification evidence for this exact version.

Sources