Skip to content
    SeaCode
    Learning tracksCode ArenaWorkshops & EventsInstructors
    Log inSign up
    </>HTML

    Document foundations

    • What is HTML?
    • Metadata and language
    • Attributes and character references
    • Headings, paragraphs and formatting

    Content and media

    • Links
    • Images
    • Lists
    • Tables
    • Responsive images and media

    Forms

    • Forms and inputs
    • Grouping form controls
    • Form validation and submission

    Structure and accessibility

    • Semantic HTML
    • Keyboard and screen-reader access
    • Disclosure with details
    • Project: your profile page
    HTML

    Structure and accessibility · Lesson 13 of 16

    Semantic HTML

    header, nav, main, footer: name every part.

    6 minutes2 games

    Instead of making everything a <div>, some tags describe a part's role: <header> at the top, <nav> for the main links, <main> for the main content (only one), <article> for standalone content, <footer> at the bottom. Screen readers and search engines understand your page better.

    HTML
    <header>
      <h1>My Blog</h1>
      <nav>
        <a href="#">Home</a> | <a href="#">About</a>
      </nav>
    </header>
    <main>
      <article>
        <h2>Learning HTML</h2>
        <p>Today I learned semantic tags.</p>
      </article>
    </main>
    <footer>© 2026 My Blog</footer>

    Important

    Semantic elements communicate meaning to assistive tools, but sections also need a sensible heading structure.

    Interview question

    When should you choose article over section?

    Quick question

    Where do you put the main set of links?

    Order the lines

    Order the page parts from top to bottom.

    1. Click the lines in the right order

    Learn more from

    • MDN: HTML referencedeveloper.mozilla.org
    • web.dev: semantic-htmlweb.dev

    Played 0 of 2 games

    Sign in to save your progress and earn XP.

    PreviousForm validation and submissionNextKeyboard and screen-reader access
    SeaCode

    Learn to code for real, online or at our branch in front of Cairo University, Giza.

    Learn

    • All courses
    • Interactive tutorials
    • Interview practice problems
    • Mock interview
    • Learning tracks
    • Code Arena
    • Workshops & Events
    • Knowledge library
    • Team projects

    Your account

    • Log in
    • Sign up
    • Learning plan
    • Certificates
    • Site map

    Contact us

    • WhatsApp
    • 010 9094 1104
    • In front of Cairo University, Giza

    © 2026 SeaCode. All rights reserved.