| Learn | HTML - Lists - Ordered list | |||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Ordered List An ordered list can be created with the This will produce a numbered list (which is the default style):
Manually changing the numbersThere are a couple of ways you can play with which numbers appear on the list items in an ordered list. The first way is to set a starting number, using the This will produce a numbered list (which is the default style):
You can also explicitly set a certain list item to a specific number. Further list items after one with a specified value will continue incrementing by one from that list item's value, ignoring where the parent list was at. It is also worth noting that, by using the So the example above will produce a list that follows the numbering pattern of 5, 6, 4, 5, 6 - starting again at a number lower than the previous and duplicating the number 6 in the list. Note: The You can reverse the numbering by adding Reverse numbering is helpful if you're continually adding to a list, such as with new podcast episodes or presentations, and you want the most recent items to appear first. Changing the type of numeralYou can easily change the type of numeral shown in the list item marker by using the
You should use `ol` to display a list of items, where the items have been intentionally ordered and order should be emphasized. If changing the order of the items does NOT make the list incorrect, you should use `ul` |
Read Article
https://develop.horje.com/learn/1434/reference