17. Ordered Lists (<ol>)
Ordered lists are used when the sequence or ranking of items is important (e.g., instructions, rankings, or steps in a process).
17.1 Structure
The structure requires a parent <ol> (Ordered List) tag, which contains one or more child <li> (List Item) tags.
html
Instructions for Baking
- Preheat oven to 350 degrees.
- Mix all dry ingredients in a large bowl.
- Fold in wet ingredients gently.
- Bake for 30 minutes.
17.2 List Control Attributes
Ordered lists can be controlled using attributes:
start: Specifies where the numbering should begin.type: Specifies the type of marker (e.g.,1for numbers,afor lowercase letters,Ifor uppercase Roman numerals).
html
- Step 4
- Step 5