Lists
When we need to list items, there are a few options in HTML.
Unordered lists
These are lists where the order is arbitrary, for example colours:
- Red
- Blue
- Yellow
- Green
Ordered lists
These are lists where the order affects the meaning, such as the days of the week:
- Monday
- Tuesday
- Wednesday
- Thursday
- Friday
- Saturday
- Sunday
Ordered lists can be reversed, such as a countdown:
- Bronze
- Silver
- Gold
Ordered lists can also be started at a specified number:
- Saturday
- Sunday
Description/definition lists
These are lists that contain key-value pairs. Sometimes there can be more than one value for each key.
- Name
- Jane Doe
- Age
- 30
- Height
- 160cm
- Eye colour
- Brown
- Favourite animal
- Dogs
- Cats