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>

Try It Yourself

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