HTML reversed attribute

In order list, reversed attribute numbers the list items backwards (in descending order).

Example


<ol reversed>
 <li>Australia
 <li>China 
 <li>USA
 <li>UK
</ol>

Try</>

By default, the list is in ascending order.

reversed attribute values

reversed attribute is a boolean attribute.

Related Tags

<ol> tag

ol tag defines ordered lists where order of items is necessary.

Use with other tags

It can be used with other attributes. For example, type attribute may be used with start attribute.

Example

<ol reversed start="60">
 <li>Australia
 <li>Japan 
 <li>Indonesia
 <li>Uganda
</ol>

Try</>

It can also be used with type attribute.

Example

<ol reversed type="I">
 <li>Japan
 <li>China 
 <li>UAE
 <li>UK
</ol>

Try</>


Was this article helpful?

 

Email:

Message:

Get the newsletter