HTML headings give a page an understandable structure. A main heading introduces the topic, second-level headings divide it into major sections, and lower levels introduce nested subsections. Readers can scan that structure visually, while people using assistive technology can often navigate directly between headings.
Headings can help search engines understand a page, but no tag sequence guarantees ranking. Choose levels for meaning, not because one browser style looks larger or smaller.
What H1 through H6 mean
HTML provides six heading elements, from h1 to h6 . Think of a page as a document outline: the main topic, major sections, and subsections within those sections. Not every page needs six levels.…