HTML Headings
Headings are defined with the <h1> to <h6> tags. <h1> defines the most important heading and <h6> defines the least important. Browsers automatically add space (margin) before and after each heading.
Heading Hierarchy
Headings create a document outline. Search engines use headings to index the structure and content of your pages. Users often skim a page by its headings, so it is important to use them to show the document structure. Use headings only for actual headings — do not use them to make text bold or large.
<h1>— Page title, used once per page<h2>— Major section headings<h3>— Sub-sections within an h2<h4>–<h6>— Deeper nesting, used sparingly