When should I use an ordered list instead of an unordered list?
Quick answer
Use an ordered list when the sequence of items matters—for example, when steps must be followed in a particular order. Use an unordered list when the items are a collection and rearranging them would not change their meaning. For a nested list, put the inner list within the list item it explains, and choose its type according to whether order matters there.
The question, the details, the next step.
A practical checklist
Ask whether rearranging the items would change their meaning or the task.
Use an ordered list when the sequence communicates necessary steps or progression.
Use an unordered list when the items form a collection without meaningful numerical order.
Nest a list only when its entries belong under a specific parent list item.
Choose the nested list’s type by the meaning of its own items, not by the outer list’s type.
Remove numbering or nesting that serves only to create visual indentation.
A few more useful answers
Should a list of options be numbered?
Use bullets if the options are simply a collection and their order does not matter. Use numbers only if the positions communicate a meaningful order.
Can an ordered list contain an unordered list?
Is indentation alone a reason to make a nested list?
No. Nest a list when the inner items are related to a particular outer item, and choose the list type for their meaning rather than using list markup just to create indentation. [S2]
Sources
References used for this guide.
- [S1] MDN: HTML ordered list element developer.mozilla.org · Checked
- [S2] MDN: HTML unordered list element developer.mozilla.org · Checked
