HTML headings are hierarchical elements found in the body element of a document, numbering from h1 (most important) to h6 (least important). They serve as headings for individual areas of the page, and are usually styled to show their relative importance, with h1 typically being the largest font size on the page.

Headings are best thought of as the outline of the document: The h1 is the headline or title of the page or article, h2s are each top-level points, and other lower heading levels are sub-points.

A typical h1 tag:

Lorem ipsum dolor sit amet, consectetur adipisicing elit 

A typical h2 tag:

Lorem ipsum dolor sit amet, consectetur adipisicing elit 

While a page can have multiple h2, h3, h4, or other heading tags, it's generally a best practice to only have one h1. Because it is the highest level heading, and because there is only one of them, this content area is typically given a high amount of weight by search engines. Perhaps second to the title tag, the h1 is usually the most important place for keywords on the page. Including keywords here is a good indicator that the page content is relevant to these words.

Did this answer your question?