If you want to order your list in descending order instead of ascending:
Quick answer: reversed="reversed".
Read below for explanation:
In previous versions of HTML, the only way to achieve this was to place a value attribute on each lielement, with successively decreasing values.
Top 5 TV Series
- Friends
- 24
- The Simpsons
- Stargate Atlantis
- Stargate SG-1
The problem with that approach is that manually specifying each value can be time consuming to write and maintain, and the value attribute was not allowed in the HTML 4.01 or XHTML 1.0 Strict DOCTYPEs (although HTML 5 fixes that problem and allows the value attribute)
The new markup is very simple: just add a reversed attribute to the ol element, and optionally provide a start value. If there’s no start value provided, the browser will count the number of list items, and count down from that number to 1.
Greatest Movies Sagas of All Time
- Police Academy (Series)
- Harry Potter (Series)
- Back to the Future (Trilogy)
- Star Wars (Saga)
- The Lord of the Rings (Trilogy)
Since there are 5 list items in that list, the list will count down from 5 to 1.
The reversed attribute is a boolean attribute. In HTML, the value may be omitted, but in XHTML, it needs to be written as: reversed="reversed".