TutreNews Learn

Semantics and accessibility

Semantic layout elements

Goal: Structure a page with header, nav, main, article, section, aside and footer · 9 min

Generic <div> boxes say nothing about their content. Semantic elements do:

elementmeaning
headerintroductory content, logo, site title
navmajor navigation links
mainthe main content — once per page
articleself-contained piece (blog post, product card)
sectionthematic group, normally with a heading
asideside content (related links, info box)
footerclosing info: copyright, contact, imprint

Screen readers offer shortcuts to these landmarks, and search engines use them to identify the main content. Use <div> only when no semantic element fits (e.g. purely for styling).

Worked example: Page skeleton

  1. header with nav at the top.
  2. main with one article.
  3. footer at the end.
<header>
  <a href="/">Lumen</a>
  <nav><a href="/blog">Blog</a></nav>
</header>
<main>
  <article>
    <h1>Hello world</h1>
    <p>First post.</p>
  </article>
</main>
<footer><p>© 2025 Lumen</p></footer>