English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
The reversed attribute is a boolean attribute. If the reversed attribute exists, it specifies that the list order should be in descending order (9,8,7 ...), rather than ascending (1,2,3 ...)
Descending Order:
<!DOCTYPE html> <html> <head> <title>HTML: <ol> reversed Attribute - Basic Tutorial Website(oldtoolbag.com)</title> </head> <body> <ol reversed> <li>Coffee</li> <li>Tea</li> <li>Milk</li> </ol> </body> </html>Test and see ‹/›
IEFirefoxOperaChromeSafari
Currently only Chrome and Safari 6 Supports the reversed attribute.
The reversed attribute is a boolean attribute.
If the reversed attribute exists, it specifies that the list order should be in descending order (9,8,7 ...), rather than ascending (1,2,3 ...).
The reversed attribute is an HTML5 new attributes.
In XHTML, attribute shorthand is prohibited, the reversed attribute must be defined as <ol reversed="reversed">.
<ol reversed>HTML <ol> tag