root@coding-prodigies:~# โ–Š
// lesson 2 of 12 ยท 18 min

Structure and semantic HTML

โš‘ Report an issue with this lesson
<body>
  <header><h1>Coding Prodigies</h1></header>
  <nav><a href="#courses">Courses</a></nav>
  <main>
    <article>...</article>
  </main>
  <footer>© 2026</footer>
</body>

Semantic tags aren't decoration -- they're what lets a screen reader jump straight to <main>, and what a search engine uses to understand your page's structure. Reach for the specific tag before falling back to a generic <div>.

Try it yourself

Exercise: Replace the &lt;div&gt; tags with the correct semantic tags (header, nav, main, footer).
html
Live preview
// free preview

9 more lessons โ€” including Capstone project: a multi-page site โ€” plus a certificate are waiting.

Unlock the full course โ€” $149.99