ol reversed Attribute - HTML CSS HTML Tag

HTML CSS examples for HTML Tag:ol

Description

The reversed attribute is a boolean attribute to set if the list order should be descending (9,8,7...), instead of ascending (1, 2, 3...).

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

The following code shows how to create a list with Descending order.

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<body>

<ol reversed>
<li>C</li>
<li>A</li>
<li>B</li>
</ol><!--from  w w w  .j ava  2  s .  co m-->

</body>
</html>

Related Tutorials