HTML reserved Attribute



The HTML reserved attribute define that the list order in ol HTML element should be descending in an HTML document.

Syntax

Following is the syntax −

<ol reserved></ol>

Let us see an example of HTML reserved Attribute −

Example

Live Demo

<!DOCTYPE html> <html> <style>    body {       color: #000;       height: 100vh;       background-color: #8BC6EC;       background-image: linear-gradient(135deg, #8BC6EC 0%, #9599E2 100%);    } </style> <body> <h1>HTML reversed Demo</h1> <p>List of subjects: </p> <ol reversed> <li>Physics</li> <li>Chemistry</li> <li>Maths</li> <li>Biology</li> <li>Economics</li> </ol> </body> </html>

Output

Updated on: 2021-02-17T05:37:19+05:30

381 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements