HTML Lists are used to create informative lists. Any list will have one or more list items. We have three types of lists in HTML.
- ul: An unordered list is referred to as an ul. Simple bullets would be used to list the items.
- ol: A number that is arranged in a certain order. This will list the items using various numbering schemes.
- dl: A definition list. This puts the things in the same order as they will be in a dictionary.
To set reversed ordering of list items in an ordered list, we can use the reversed attribute of the <ol> element in HTML. It was introduced in HTML5 and shows the numbering in descending order.
<ol reversed> <li>ListName</li> </ol>
Example 2: Using the start attribute, you can specify at what number you want the list to begin.