HTML CSS JavaScript Privacy About Contact

HTML Headings

Learn how to use HTML headings h1 through h6

HTML Headings

HTML headings are defined with the <h1> to <h6> tags.

<h1> defines the most important heading. <h6> defines the least important heading.


Example

Preview

Headings Are Important

  • Search engines use headings to index the structure of your page
  • Users skim pages by their headings — use them to show the document structure
  • Use <h1> headings for main headings, followed by <h2>, then <h3>, and so on

Tip: Use HTML headings for headings only. Do not use headings to just make text Big or Bold.


Bigger Headings

Each HTML heading has a default size. You can change the size using the style attribute:

Preview
Placeholder Ad Space