Headings Are Important: Search engines use headings to index structure and content of webpages. Users scan webpages by the headings, so use headings to show, at a glance, what it's all about.
Headings are defined with the <h1> to <h6> tags, with the most important content inside <h1> tags, while the the least important are done with the <h6> element.
HTML file: | Displayed by browser: |
---|---|
<h1>This is heading 1</h1> |
This is heading 1This is heading 2This is heading 3This is heading 4This is heading 5This is heading 6 |
Note the spacing above and below each heading, which is why we cannot use these tags inside paragraphs.