topskill.dev
CoursesTracks
0
All courses/Introduction to HTMLList Types: Steps, Items, and Terms
Text Content
5 / 8
← Introduction to HTML
○What Is HTML? See Tags in Action○Build the Meridian Signal○Complete HTML5 Page Structure○Build a Complete HTML5 Page✦Module Quiz
○Heading Hierarchy: H1 and H2○Extend the Signal Brief○Paragraphs and Inline Tags○Write Meridian's Survey Notes●List Types: Steps, Items, and Terms○Build a Crew Member Loadout○Challenge: Transmit a Rescue Signal✦Module Quiz
○Hyperlinks○Links between project files○Images○Applying Styles to HTML✦Module Quiz
○Div and Span○HTML Tables○Classes and IDs○Review: Structured Profile✦Module Quiz
○Project 1 - Visiting Card Structure○Project 1 - Visiting Card Actions✦Module Quiz
○The Head Element and Page Title○Meta Tags○HTML Entities✦Module Quiz
○Form Basics: Join the Meridian Relay○Build a Night-Shift Check-In○Input Types: Build a Mission Profile○Record Beacon Maintenance○Choice Controls: Select Training Modes○Plan a Supply Pickup○Response Controls: Send a Mission Reply○Build a Rescue Dispatch Report○Form validation and submission○Challenge: Send an Emergency Beacon✦Module Quiz
○Project 2 - Contact Us Form Structure○Project 2 - Contact Us Form Actions✦Module Quiz
○Embedding Video○Embedding Audio○Iframes✦Module Quiz
○Semantic HTML Tags○Details, Figure, and Figcaption○A keyboard-friendly page✦Module Quiz
○Project 3 - Resume Semantic Structure○Project 3 - Resume Links and Actions✦Module Quiz

List Types: Steps, Items, and Terms

The Meridian crew is preparing for a night rescue. The completed index.html organizes launch steps, loose gear, and short definitions differently because they do different jobs. Run the page and find each list in the source.

Read the code

html
<ol><li>Check the beacon.</li><li>Charge the wrist light.</li></ol>
<ul><li>First-aid pouch</li><li>Signal flares</li></ul>
<dl><dt>Beacon sight</dt><dd>Locates a nearby distress signal.</dd></dl>

Use <ol> for a sequence and <ul> when order does not matter. Put each item inside an <li> within its list. A <dl> holds a description list: each <dt> names a term and the following <dd> explains it. Indent the inner elements to make those relationships easy to see.

For a sub-list, put the whole new list inside the parent item, before its closing </li>:

html
<ul>
  <li>Recording kit
    <ul>
      <li>Notebook</li>
      <li>Pencil</li>
    </ul>
  </li>
</ul>

The inner list belongs to “Recording kit,” not beside that item. The next exercise needs only flat lists; this pattern is here for lists with genuine subgroups.

Try the preview

Run the page. The launch sequence is numbered, the rescue kit is bulleted, and each mission system term stays paired with its explanation.

Check your page

Use the preview to connect each visible result to the HTML that created it. For a safe experiment, change both the opening <ol> and closing </ol> to <ul> and </ul>, rerun to see the numbering turn into bullets, then restore it.

Next

Continue to Build a Crew Member Loadout. You will recreate the same idea from a smaller starter file.

Files
  • ⋄index.html
Loading editor…