Choose the right HTML5 landmark and semantic tags.
Page skeleton
<body>
<header>… branding, global nav …</header>
<nav aria-label="Main">… primary links …</nav>
<main>
<h1>Page title</h1>
<article>
<header><h2>Post title</h2></header>
<section>…</section>
</article>
<aside>… related / promo …</aside>
</main>
<footer>…</footer>
</body>
Quick rules
- One
<main>per page (unique). <article>= self-contained content (post, card story).<section>= thematic grouping inside an article/page.<nav>for major navigation blocks, not every link list.
Images & media
<figure>
<img src="chart.png" alt="Sales up 12% YoY">
<figcaption>Q4 summary</figcaption>
</figure>
Forms
<label for="email">Email</label>
<input id="email" name="email" type="email" autocomplete="email" required>
Semantic HTML helps screen readers and search engines understand structure — pair with heading order (no skipped levels).