A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.geeksforgeeks.org/html/html-ol-reversed-attribute/ below:

HTML<ol> reversed Attribute - GeeksforGeeks

HTML<ol> reversed Attribute

Last Updated : 17 Apr, 2025

The HTML <ol> reversed Attribute 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>


Example: 

html
<!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 ol 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>

Output:


Supported Browsers: 



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4