html tutorial - reversed Attribute in HTML - html5 - html code - html form

Learn html - html tutorial - Reversed attribute in html - html examples - html programs
- The reversed attribute is used to specify that the ordered list should be in descending.
- This is a Boolean attribute.
Syntax for reversed attribute in HTML:
<ol reversed>
Difference between HTML 4.01 and HTML 5 for reversed Attribute:
HTML 4.01
- HTML 4 does not support the reversed attribute.
HTML 5
- The reversed attribute is new to HTML 5.
Applies To:
Elements | Attribute |
---|---|
<input> | reversed |
<textarea> | reversed |
<select> | reversed |
Sample Coding for reversed Attribute in HTML:
Tryit<!DOCTYPE html>
<html>
<head>
<title>Wikitechy reversed attribute</title>
</head>
<body>
<h2>Wikitechy Tutorials</h2>
<ol reversed>
<li>HTML</li>
<li>CSS</li>
<li>PHP</li>
</ol>
</body>
</html>
Code Explanation for reversed Attribute in HTML:

- This reversed attribute used to specifies that the ordered list should be in descending.
Output for reversed Attribute in HTML:

- The output shows that the list of ordered list in the reversed order.
Browser Support for reversed Attribute in HTML:
![]() |
![]() |
![]() |
![]() |
![]() |
---|---|---|---|---|
18.0 | No | 18.0 | 5.2 | Yes |