Přejít k hlavnímu obsahu
← 📄 HTML & the platform·Modul A2 · Lekce 12
ÚkolBuild a blog index. <header> with <h1>Anna's notes</h1> and a <nav aria-label='Primary'><ul><li>Home</li><li>About</li></ul></nav>. <main> with two <article> each containing <h2> title and <p> body. <aside> at body level with <h2>Recent</h2> and <ul>. <footer> with <nav aria-label='Footer'><ul><li>Privacy</li></ul></nav> and <p>© 2026</p>.

Vrchní kámen modulu: přestavte stránku div-polévky

200 XP14 min
Teorie

Putting A2 together

You've seen each semantic element in isolation. Now combine them into a complete page with five landmarks and proper heading hierarchy.

The page we're rebuilding

A "blog index" with:

  • Site header (logo + primary nav)
  • Main content area with two blog post articles
  • A sidebar listing recent posts
  • A site footer with secondary nav + copyright

Currently it's built as a 6-div soup that screen readers parse as one giant unstructured wall. Your job: rebuild it with semantic tags.

Lighthouse + axe checklist

After your refactor, the page should pass:

  • Exactly one `<h1>`
  • No heading-level skips
  • Each landmark (<nav>) labeled or unique
  • Articles wrap independently syndicatable content
🔒

Zaregistruj se a začni programovat

Teorie je otevřená pro každého. Editor, živý náhled a check se odemknou s 7denní zkušební verzí zdarma — karta vyžadována, zrušíš kdykoli.

Registrace — zkušební verze zdarma →

Prvních 10 lekcí v každé trase je zdarma. Karta není potřeba.

← PředchozíDalší lekce →

Jeden tip k Pythonu nebo webu denně — e-mailem

Krátké, ručně psané, žádný spam. Odhlásit jedním klikem.