Advertisement
Home Open Editor ❯

HTML reversed Attribute

Example

<ol reversed>
  <li>One</li>
  <li>Two</li>
  <li>Three</li>
</ol>

Try this code ❯

Meaning

The reversed attribute specifies that the counting of the list should go in reverse order.

CSS counters provide much more functionality than this attribute, but it is useful in the absence of this more complicated syntax.


Standard Syntax

HTML: <element reversed>
XHTML: <element reversed="reserved">


Applies to:

The reversed attribute can be used on the following element:

Element Attribute
<ol> reversed

Advertisement

Attribute Values

Value Description
reversed This is a boolean attribute, the presence of a boolean attribute on an element represents the true value, and the absence of the attribute represents the false value.
Home Open Editor ❯
Advertisement