HTML <ol> reversed attribute
Definition and usage
reversed
The attribute is a boolean attribute.
If present, it specifies that the list order should be in descending order (9,8,7...), rather than in ascending order (1, 2, 3...).
Example
Descending list order:
<ol reversed> <li>coffee</li> <li>tea</li> <li>milk</li> </ol>
Syntax
<ol reversed>
Browser support
The numbers in the table indicate the first browser version to fully support this attribute.
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
18.0 | 79.0 | 18.0 | 6.0 | 12.1 |