What is an HTML Heading?

Question: What is an HTML Heading?


Heading tags are the simplest way to divide up your document. If you think of your site as a newspaper, then the headings are the headlines on the newspaper. The main headline is an H1 and subsequent headings are H2 through H6.

To create an HTML heading, surround the text you want as your heading with one of the following heading tags. For example:

<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>

Some things to remember about heading tags:

  • There is no guarantee that every browser will display the H1 tag in exactly the same font family and size.
  • Try to keep your headings in a logical order. H1 comes first, followed by H2, then H3, etc.
  • Headings put in line breaks for you, so you don't have to worry about using <p></p> and <br /> tags.