HTML Headings

Headings. HTML defines six levels of headings. A heading element implies all the font changes, paragraph breaks before and after, and any white space necessary to render the heading. The heading elements are H1, H2, H3, H4, H5, and H6 with H1 being the highest (or most important) level and H6 the least.


The six different HTML headings:


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



How Much Headings Are Important

  1. Search engines use the headings to index the structure and content of your web pages.
  2. Users skim your pages by its headings. It is important to use headings to show the document structure.
  3. headings should be used for main headings, followed by headings, then the less important, and so on.
  4. HTML headings provide valuable information by highlighting important topics and the structure of the document.
    Don’t use headings to make text BIG or bold. Use it only for highlighting the heading of your document and to show the document structure.
    As search engines use headings to index the structure and content of your web pages so use it very wisely in your webpage.
    Use <h1> headings as main headings, followed by <h2> headings, then the less important <h3> headings, and so on.


Headings may be nested as subsections to reflect the organization of the content of the page. Most screen readers can also generate an ordered list of all the headings on a page, which can help a person quickly determine the hierarchy of the content:

h1 Beetles

  1. h2 Etymology
  2. h2 Distribution and Diversity
  3. h2 Evolution
    1. h3 Late Paleozoic
    2. h3 Jurassic
    3. h3 Cretaceous
    4. h3 Cenozoic
  4. h2 External Morphology
    1. h3 Head
      1. h4 Mouthparts
    2. h3 Thorax
      1. h4 Prothorax
      2. h4 Pterothorax
    3. h3 Legs
    4. h3 Wings
    5. h3 Abdomen

When headings are nested, heading levels may be “skipped” when closing a subsection.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Close Menu