Overview - Section and article
What is it?
The and elements are parts of HTML used to organize content on a webpage. A groups related content under a common theme, like chapters in a book. An represents a self-contained piece of content that can stand alone, like a blog post or news story. Both help browsers and people understand the page structure better.
Why it matters
Without these elements, web pages would be just a jumble of text and images, making it hard for users and tools like search engines or screen readers to find and understand important parts. Using and improves accessibility, SEO, and makes the page easier to maintain and style. It’s like having clear chapters and articles in a newspaper instead of random paragraphs.
Where it fits
Before learning about and , you should know basic HTML tags like
,
, and headings. After mastering these, you can learn about other semantic elements like
Mental Model
Core Idea
Section and article tags organize webpage content into meaningful, self-contained blocks that help both humans and machines understand the page structure.
Think of it like...
Think of a webpage as a magazine: is like a magazine section (e.g., Sports, Lifestyle), grouping related stories, while is like an individual story or article within that section that can be read on its own.
┌─────────────────────────────┐ │ <section> │ ← Groups related content │ ┌───────────────┐ │ │ │ <article> │ │ ← Self-contained content piece │ │ Story 1 │ │ │ └───────────────┘ │ │ ┌───────────────┐ │ │ │ <article> │ │ │ │ Story 2 │ │ │ └───────────────┘ │ └─────────────────────────────┘
Build-Up - 7 Steps