CKTIS / HTML
h4 — fourth-level heading
The `h4` element marks a fourth-level heading. Choose it according to content hierarchy, not text size.
Version: WHATWG HTML Living Standard; index snapshot date recorded separately
Syntax
<h4>...</h4>h4 represents a heading with base level 4, usually subordinate to a topic marked by h3. It does not mean “the fourth heading on the page”.
It requires opening and closing tags. It accepts phrasing content, such as text and em, but not p paragraphs or nested headings. It supports global attributes, such as id.
Choose the level by structure, not appearance; change appearance with CSS. In the example, Network settings expands on Configuration. The expected output describes text order, not typography.
Examples
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Heading hierarchy</title>
</head>
<body>
<h1>Manual</h1>
<h2>Installation</h2>
<h3>Configuration</h3>
<h4>Network settings</h4>
<p>Choose a local port.</p>
</body>
</html>Result
Manual Installation Configuration Network settings Choose a local port.
The displayed code and declared result were verified in an isolated environment using the method recorded in the verification evidence for this exact version.