Headings and Text

The h1-h6 tags create headings of different levels (h1 is the most important, usually just one per page). Regular text is split into paragraphs with the p tag.

Example

<h1>Main heading</h1>
<p>This is the first paragraph of text on the page.</p>
<h2>Subheading</h2>
<p>Another paragraph with more detail.</p>
▶ Try it in the editor

Task

Create an h1, one h2 beneath it, and one paragraph of text after each heading.

Related tools