Set the list order to descending:
The reversed property sets or returns whether the list order should be descending or not.
When set to true, the list order will be descending (9, 8, 7...), instead of ascending (1, 2 , 3...).
The reversed property is supported in all major browsers, except Internet Explorer.
Note: The reversed property is not supported in Safari 5 and earlier versions.
Return the reversed property:
Set the reversed property:
Value | Description |
---|---|
true|false |
Specifies whether the list order should be descending or not
|
Return Value: | A Boolean, returns true if the list order is descending, otherwise it returns false |
---|
Find out if the list order is descending or not:
The result of x will be:
HTML reference: HTML <ol> reversed attribute