Lesson 2 of 15

Headings & Paragraphs

Headings and Paragraphs

HTML has six heading levels, from <h1> (most important) to <h6> (least important):

<h1>Page Title</h1>
<h2>Section Title</h2>
<h3>Subsection</h3>
<h4>Minor heading</h4>
<h5>Small heading</h5>
<h6>Smallest heading</h6>

Paragraphs use the <p> tag:

<p>This is a paragraph. It can span multiple sentences.</p>

Browsers automatically add space before and after headings and paragraphs.

Your Task

Create a page with:

  • An <h1> main title
  • An <h2> section title
  • An <h3> subsection title
  • A <p> paragraph with some text
HTML preview loading...
Loading...
Click "Run" to execute your code.