Ordered lists or numbered lists contain list items each prefaced by a number. We use a numbered list when the order or priority of items is important.
We use two kinds of elements for a numbered list:
- The ordered list element (<ol>) specifies a numbered list.
- List item elements (<li>) mark each item in the list.
The following markup defines a three-item numbered list: