HTML | reversed Attribute
It is a Boolean Attribute and used to ordered the list in Descending Order(9, 8, 7, 6 …..) instead of ascending order(1, 2, 3 ….).
Syntax:
<ol reversed>
<li> Content... </li>
<li> Content... </li>
...
<li> Content... </li>
</ol>
Attributes: It contains single attributes reversed. It is a Boolean attributes which specify the list in descending order.
Example:
<!DOCTYPE html> <html> <head> <title>reversed attribute</title> <style> h1, h2 { text-align:center; } </style> </head> <body> <h1 style ="color:green;font-style:italic;"> GeeksforGeeks </h1> <h2 style="color:green;font-style:italic;"> HTML reversed attribute </h2> <p>List of all computer Subjects are</p> <ol reversed> <li>Data Structures</li> <li>Operating System</li> <li>python programming</li> <li>DBMS</LI> <li>Computer Network</li> </ol> </body> </html> |
chevron_right
filter_none
Output:

Supported Browsers: The browser supported by HTML reversed attributes are listed below:
- Google Chrome 18.0
- Firefox 18.0
- Opera
- Safari 5.2
Recommended Posts:
- HTML | <ol> reversed Attribute
- HTML | DOM Ol reversed Property
- HTML | <li> value Attribute
- HTML | min Attribute
- HTML | for Attribute
- HTML | <img> alt Attribute
- HTML | dir Attribute
- HTML | <a> rel Attribute
- HTML | value Attribute
- HTML | <map> name Attribute
- HTML | low Attribute
- HTML | <img> src Attribute
- HTML | onblur Attribute
- HTML | placeholder Attribute
- HTML | multiple Attribute
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.




