Introduction to Headings.
HTML provides not only plain paragraph tags, but six separate header tags to indicate headings of various sizes and thicknesses. Enumerated as heading 1 through heading 6, heading 1 has the largest and thickest text while heading 6 is the smallest and thinnest, down to the paragraph level. This topic details proper usage of these tags.
📄️ Using Headings
Headings can be used to describe the topic they precede and they are defined with the ` to ` tags. Headings support all the global attributes.
📄️ Correct Structure Matters
Search engines and other user agents usually index page content based on heading elements, for example to create a table of contents, so using the correct structure for headings is important.
📄️ Remarks
- An h1–h6 element must have both a start tag and an end tag.1