1. Home
  2. Computing & Technology
  3. Web Design / HTML

What is an HTML Heading?

By Jennifer Kyrnin, About.com

Question: What is an HTML Heading?

Answer:

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 XHTML heading, surround the text you want as your heading with one of the following heading tags - as demonstrated.

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

  • All browsers display headings differently
  • Try to keep your headings in a logical order
  • Headings put in line breaks for you, so you don't have to worry about using <p></p> and <br /> tags.

More Web Design / HTML Q&A

Explore Web Design / HTML

More from About.com

  1. Home
  2. Computing & Technology
  3. Web Design / HTML
  4. HTML and XHTML
  5. XHTML
  6. HTML Tags
  7. What is an HTML Heading? - Heading Tags H1, H2, H3, H4, H5, H6

©2008 About.com, a part of The New York Times Company.

All rights reserved.