Overview - Headings (h1–h6)
What is it?
Headings in HTML are special tags that show titles or subtitles on a webpage. They range from h1 to h6, where h1 is the biggest and most important, and h6 is the smallest and least important. These tags help organize content so readers and browsers understand the structure of the page. They also improve accessibility and search engine ranking.
Why it matters
Without headings, webpages would look like one big block of text, making it hard to read or find information quickly. Headings create clear sections, like chapters in a book, so users can scan and understand the page easily. They also help screen readers guide visually impaired users and help search engines know what the page is about.
Where it fits
Before learning headings, you should know basic HTML tags like paragraphs and links. After headings, you can learn about semantic HTML elements like sections and articles, and then move on to styling headings with CSS and making pages accessible.