HTML: List in reversed order

Add the “reversed” attribute to the “ol” tag

The reversed attribute is a boolean attribute.
When present, it specifies that the list order should be descending (9,8,7…), instead of ascending (1, 2, 3…).

<ol reversed>
  <li>Coffee</li>
  <li>Tea</li>
  <li>Milk</li>
</ol>

Reference: HTML <ol> reversed Attribute

Categories