CKTIS / HTML
h1 — level-one heading
The h1 element represents a heading for a top-level section. Choose heading levels to match the content structure.
Version: WHATWG HTML Living Standard; index snapshot date recorded separately
Syntax
<h1>Heading text</h1>h1 represents a heading for a top-level section. h2 represents a subsection heading, and h3 represents the next nested level; the hierarchy extends through h6.
Both opening and closing tags are required. Its content model is phrasing content: it can contain text and elements such as em, but not paragraphs represented by p or sections represented by section. Global attributes are available.
In the example, h1 names the whole content, while h2 names a subsection. Choose a heading for its structural meaning, not the desired text size.
Examples
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Study guide</title>
</head>
<body>
<h1>Study guide</h1>
<section>
<h2>Practice</h2>
<p>Complete one exercise.</p>
</section>
</body>
</html>Result
Study guide Practice Complete one exercise.
The displayed code and declared result were verified in an isolated environment using the method recorded in the verification evidence for this exact version.