Headings: Semantics, Fluidity, and Styling — Oh My!
css-tricks.com·3h
Flag this post

A few links about headings that I’ve had stored under my top hat.

Martin Underhill:

I’ll start with where the <h1> should be placed, and you’ll start to see why the <header> isn’t the right location: it’s the header for the page, and the main page content should live within the <main> element.

A classic conundrum! I’ve seen the main page heading (<h1>) placed in all kinds of places, such as:

  • The site <header> (wrapping the site title)
  • A <header> nested in the <main> content
  • A dedicated <header> outside the <main> content

Aside from that first one — the site title serves a different purpose than the page title — Martin pokes at the other two structures, describing how the imp…

Similar Posts

Loading similar posts...