Imagine reading a book where every single word was the exact same size. No chapters, no
titles—just a wall of text. You'd lose your mind in five minutes.
Headings (<h1> through <h6>) tell the browser (and
Google) what the big ideas are. Browsers treat them like an outline for your brain.
The H1: The One True King
The <h1> is the "Main Title." You should only have
one per page. It’s the name of the movie, the title of the
book, the "You Are Here" sign.
H2 - H3: The Supporting Cast
<h2> are your major sections. <h3> are
sub-sections inside those. They keep your content from looking like a rambling
grocery list.
H4 - H6: The Fine Print
These are rarely used, like the "Terms and Conditions" or that one side character in a sitcom who only has three lines. But they're there if you need deep organization.
SEO Gold
Google scans your headings to figure out what your site is about. Use keywords in headings to make the algorithm happy.
Natural Flow
Don't jump from an <h1> straight to an <h4>.
It’s like skipping the first three steps of a ladder—awkward and potentially
painful.
Accessibility Hero
Visually impaired users use screen readers to "jump" between headings. Good structure helps everyone navigate.
The "Big Text" Trap
DO NOT use headings just because you want text to be bold or large. That is what CSS is for. Use headings because the text IS a heading. Respect the semantics!
<h1>The Ultimate Guide to Pizza</h1>
<h2>Famous Pizza Styles</h2>
<h3>New York Thin Crust</h3>
<h3>Chicago Deep Dish</h3>
<h2>Topping Controversies</h2>
<h3>Does Pineapple Belong?</h3>
<h4>Arguments for "Yes"</h4>
<h4>Arguments for "Absolutely Not"</h4>