Skip to content

Courses / HTML5 Mastery: Complete Beginner to Advanced Course / HTML Lists

670 people viewed this

HTML Lists

<ol reversed>
    <li>Alpha</li>
    <li>Beta</li>
    <li>Gamma</li>
</ol>
  1. 1, 2, 3
  2. 0, -1, -2
  3. 3, 2, 1
  4. 3, 4, 5

17. Quiz Answer Key and Explanations

Review every answer and understand why it is correct before continuing to the next section.

Answer 1: B — ul

The ul element represents an unordered list. The ol element represents an ordered list, dl represents a description list, and li represents an individual list item.

Answer 2: C — Ordered list

An ordered list is appropriate when sequence matters, such as step-by-step instructions. An unordered list is more appropriate when the sequence is not inherently important.

Answer 3: B — dt

The dt element represents a term or name in a description list. The dd element provides its associated description or value.

Answer 4: C — 4, 5, 6

The start attribute sets the initial ordinal value of the ordered list to 4. Each subsequent list item continues with the next ordinal value.

Answer 5: True

A nested list should be contained within the li element representing its parent item. This correctly communicates the hierarchical relationship between the parent and child items.

Answer 6: B — 1, 5, 6

The first item begins at 1. The value attribute sets the second item's ordinal value to 5, so the following item is numbered 6.

Answer 7: C — dl, dt and dd

The dl element contains the description list, dt represents a term or name, and dd represents an associated description or value.

Answer 8: A, B and D

  • A is correct because ol represents an ordered list.
  • B is correct because ul represents an unordered list.
  • C is incorrect because dl represents term-description or name-value relationships, not arbitrary indented content.
  • D is correct because the type attribute supports marker conventions such as A, a, I and i.

Answer 9: False

CSS changes the visual presentation of a list, not its underlying HTML semantics. A ul remains an unordered list even when its visible markers are removed.

Answer 10: C — 3, 2, 1

The reversed attribute makes the list count down. With three list items and no explicit start value, the default initial ordinal value is 3.

Rate this course

5.0 · 1 rating

Stars show on this course. Your written note stays private.

Your stars