Headings

Headings Are Important: Search engines use headings to index structure and content of webpages. Users scan webpages by the headings, so use headings to show, at a glance, what it's all about.

Headings are defined with the <h1> to <h6> tags, with the most important content inside <h1> tags, while the the least important are done with the <h6> element.

HTML file: Displayed by browser:

<h1>This is heading 1</h1>
<h2>This is heading 2</h2>
<h3>This is heading 3</h3>
<h4>This is heading 4</h4>
<h5>This is heading 5</h5>
<h6>This is heading 6</h6>

This is heading 1

This is heading 2

This is heading 3

This is heading 4

This is heading 5
This is heading 6

Note the spacing above and below each heading, which is why we cannot use these tags inside paragraphs.

Back button Table of Contents Next button