HTML <ol> reversedAttribute
Example
Sort the list in descending order:
<ol reversed>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>
Try it Yourself »
Browser Support
![]()
![]()
![]()
![]()
![]()
Currently, only Chrome and Safari 6 support the reversed attribute.
Definition and Usage
The reversed attribute is a boolean attribute.
The reversed attribute specifies that the list order is descending (9, 8, 7...), rather than ascending (1, 2, 3...).
Differences Between HTML 4.01 and HTML5
The reversed attribute is a new attribute in HTML5.
Differences Between HTML and XHTML
In XHTML, attribute minimization is forbidden, and the reversed attribute must be defined as <ol reversed="reversed">.
Syntax
<ol reversed>
HTML <ol> Tag Other Extensions