← CodePrimer
HTML
Beginner
Basics
HTML headings h1–h6
How do I create page headings?
Heading levels for the document outline.
<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
CSS
Three ways to apply CSS
What are inline, internal, and external CSS?
PHP
Embed PHP inside HTML
How do I mix PHP and HTML?
HTML
Paragraphs and line breaks
How do I break text into paragraphs?
CSS
CSS box model
Why is my element wider than expected?
PHP
PHP comments
How do I write comments in PHP?
HTML
Hyperlinks with href
How do I make a clickable link?