← CodePrimer
HTML Beginner Basics

HTML headings h1–h6

How do I create page headings?

Heading levels for the document outline.

Sample
<h1>Main title</h1>
<h2>Section</h2>
<h3>Subsection</h3>
<p>Body text under the headings.</p>

Notes

Use one primary h1 per page when possible. Nest levels in order.

Keywords: heading · h1 · h2 · title · outline

Related

Need more coins?

You do not have enough coins for this action.

Your balance: 0 coins

Share