By default, an ordered list element (
ol tag) will display the number for each item in the ascending order.
The first item is shown with the number 1. The second item comes with number 2, and so forth.
There are some cases that we would like to reverse the order of numbers, but the actual items are kept.
Coundowns such as top 5 movies, top 10 songs, etc., are the best examples for the use case.
To do that, we just simply add the
You can use the
start attribute which indicates the start number.
Top 10 movies rated on IMDB
- The Lord of the Rings: The Fellowship of the Ring (2001)
- The Good, the Bad and the Ugly (1966)
- Pulp Fiction (1994)
- The Lord of the Rings: The Return of the King (2003)
- Schindler's List (1993)
- 12 Angry Men (1957)
- The Dark Knight (2008)
- The Godfather: Part II (1974)
- The Godfather (1972)
- The Shawshank Redemption (1994)