HTML · HTML Tutorial · Lesson 6
HTML Headings
Titles and subtitles with <h1> to <h6>.
HTML headings are titles or subtitles that you want to display on a webpage. <h1> defines the most important heading and <h6> the least important.
Example
<h1>Heading 1</h1>
<h2>Heading 2</h2>
<h3>Heading 3</h3>
<h4>Heading 4</h4>
<h5>Heading 5</h5>
<h6>Heading 6</h6>
Headings Are Important
- Search engines use headings to index the structure and content of your pages
- Users skim pages by their headings
- Use
<h1>for main headings, then<h2>,<h3>and so on
Keep reading “HTML Headings”
Sign up to read the full lesson (3 more parts), try every example in the live editor, and take the 5-question quiz.