When to Use <main>, <section>, <article>, <header>, <footer>, and <aside> in HTML5

HTML5 introduced semantic elements that help structure web content more meaningfully — not only for developers but also for browsers and assistive technologies like screen readers. If you're unsure when to use , , , , , or , this post is for you. Let's break down what they are, when to use them, and what not to do.

Apr 8, 2025 - 00:12
 0
When to Use <main>, <section>, <article>, <header>, <footer>, and <aside> in HTML5

HTML5 introduced semantic elements that help structure web content more meaningfully — not only for developers but also for browsers and assistive technologies like screen readers.

If you're unsure when to use

,
,
,
,
, or