Unordered, ordered and description lists

Default rendering throughout, except the two examples whose notes say otherwise.

ul: a set, order does not matter

Shuffle the items and the list means the same thing.

ol: a sequence, order matters

  1. Write the markup
  2. Validate it
  3. Preview it

start="4": a list that continues

  1. Fix what the validator found
  2. Commit

reversed: a countdown

  1. Bronze
  2. Silver
  3. Gold

ol type and li value: when the marker is content

type="a", because the text below refers to item (b) by its letter.

  1. The student submits the work by the deadline.
  2. Late work loses ten percent per day.
  3. Item (b) does not apply to approved extensions.

value="10" on one item

  1. One
  2. Ten
  3. Eleven: counting continues from the new value

A nested list goes inside an li

  1. Principles
    • HTML as a language
    • The document
  2. Semantics
    • Landmarks and sectioning
    • Headings, text and lists

The inner ul is a child of the li, never of the outer list. The numbering does not become 1.1, 1.2: that takes CSS counters.

dl: names and values

HTML
HyperText Markup Language, the structure of a page.
Validator
A program that checks markup against the standard.
The Nu HTML Checker is the reference one.
Color
Colour
The CSS property that sets the text color.

Validator has two descriptions; Color and Colour share one.

dl with div groups: metadata as cards

Series
HTML
Lessons
10
Groups
3
Format
Reading and demos

Styled: each div wraps one dt and its dd, the only place a div may sit directly in a dl.

Styled: list-style: none and a flex row. The role="list" is redundant in the standard, and validators say so, but Safari with VoiceOver may drop the list semantics of a list with no markers without it.