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
- Search engines use the headings to index the structure and content of your web pages.
- Users skim your pages by its headings. It is important to use headings to show the document structure.
- headings should be used for main headings, followed by headings, then the less important, and so on.
- 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:
h2Distribution and Diversity
When headings are nested, heading levels may be “skipped” when closing a subsection.