English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML Reference Manual

HTML Tag Directory

HTML ol 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 ...)

 HTML <ol> tag

Online Example

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 ‹/›

Browser Compatibility

IEFirefoxOperaChromeSafari

Currently only Chrome and Safari 6 Supports the reversed attribute.

Definition and Usage

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 ...).

HTML 4.01 versus HTML5differences

The reversed attribute is an HTML5 new attributes.

Differences between HTML and XHTML

In XHTML, attribute shorthand is prohibited, the reversed attribute must be defined as <ol reversed="reversed">.

Syntax

<ol reversed>
 HTML <ol> tag