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

    Content and media · Lesson 7 of 16

    Lists

    Bulleted and numbered lists.

    5 minutes3 games

    <ul> is a bulleted list (order doesn't matter) and <ol> a numbered one (order matters). Each item inside either is an <li>.

    HTML
    <h3>Shopping</h3>
    <ul>
      <li>Bread</li>
      <li>Cheese</li>
      <li>Tea</li>
    </ul>
    
    <h3>Make tea</h3>
    <ol>
      <li>Boil water</li>
      <li>Add tea</li>
      <li>Wait 3 minutes</li>
    </ol>

    Important

    A nested list belongs inside an li, not beside the li elements.

    Interview question

    When should you use dl instead of ul?

    Quick question

    Recipe steps (order matters). Which do you use?

    Order the lines

    Order the code for a two-item list.

    1. Click the lines in the right order

    Exercise

    Make a numbered list of 3 programming languages.

    HTML

    Learn more from

    • MDN: HTML referencedeveloper.mozilla.org
    • web.dev: listsweb.dev

    Played 0 of 3 games

    Sign in to save your progress and earn XP.

    PreviousImagesNextTables
    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.