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

HTML Referenzhandbuch

Vollständiges Verzeichnis der HTML-Tags

HTML ol reversed Eigenschaft

Die reversed-Eigenschaft ist ein boolesches Attribut. Wenn die reversed-Eigenschaft vorhanden ist, wird die Reihenfolge der Liste auf absteigend festgelegt (9,8,7 ...),而不是升序(1、2、3 ...)

 HTML <ol> Tag

Online-Beispiel

Absteigende Reihenfolge:

<!DOCTYPE html>
<html>
<head>
<title>HTML:<ol> reversed Eigenschaft - Grundlagen-Tutorial-Website(oldtoolbag.com)</title>
</head>
<body>
<ol reversed>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>
</body>
</html>
Test 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 ...),而不是升序(1、2、3 ...)。

HTML 4.01 versus HTML5differences

The reversed attribute is in HTML5 new properties.

Differences between HTML and XHTML

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

Syntax

<ol reversed>
 HTML <ol> Tag