Skip to main content
Albero Academy

Semantic Layout in Depth

Structure a full page with landmarks, choose article vs section correctly, and use figure, time, details and address.

Chapter 7HTML14 min readBeginner friendly
  • #HTML
  • #Semantics
  • #Layout

Chapter 3 introduced semantic elements; here we use them to structure a whole page and clear up the questions everyone has — when is it an article vs a section? — plus a few precise elements that make markup more meaningful and accessible.

Landmarks

The landmark elements divide a page into navigable regions that screen readers can jump between:

a landmarked page
<body>
<header>…site logo + nav…</header>
<nav>…primary links…</nav>
<main> <!-- exactly one; the page's core content -->
<article>…</article>
<aside>…related links…</aside>
</main>
<footer>…copyright, links…</footer>
</body>

article vs section

  • article — self-contained content that makes sense on its own and could be syndicated: a blog post, a product card, a comment.
  • section — a thematic grouping within a page, usually with its own heading: "Curriculum", "Pricing".
  • Rule of thumb: if you could pull it out and it still stands alone, it's an article; if it's a chunk of a bigger whole, a section.

figure & figcaption

Wrap an image (or chart, code block, quote) with its caption so the two are semantically linked:

figure
<figure>
<img src="cohort.jpg" alt="The 2026 cohort at demo day">
<figcaption>The January 2026 cohort presenting final projects.</figcaption>
</figure>

details & summary

A native, no-JavaScript expand/collapse widget — perfect for FAQs:

native accordion
<details>
<summary>Is there a refund policy?</summary>
<p>Yes — a 7-day, no-questions-asked refund.</p>
</details>

time, mark & address

precise elements
<p>Next batch: <time datetime="2026-01-12">12 January 2026</time></p>
<p>The <mark>placement rate</mark> is 98%.</p>
<address>
Contact: <a href="mailto:hello@alberoacademy.com">hello@alberoacademy.com</a>
</address>

Practice

Build a blog-post page: a header with nav, a main containing an article (with a time for the date and a figure), an aside of related posts, an FAQ using details, and a footer.

Key takeaways

  1. 01Landmarks (header, nav, main, aside, footer) divide a page into navigable regions — one <main> per page.
  2. 02article = self-contained/syndicatable; section = a themed chunk of a bigger page.
  3. 03figure + figcaption link an image (or chart/quote) to its caption.
  4. 04details + summary is a native expand/collapse — great for FAQs, no JS.
  5. 05<time datetime>, <mark> and <address> add precise meaning search engines understand.