HTML reversed Attribute

Beginner
4 min read
Updated: Oct 2026
3 examples
Live preview

Definition and Usage

The reversed attribute is a Boolean on <ol>. When present, list items are numbered from high to low (for example 3, 2, 1) instead of low to high.

The <li> order in the document stays the same — only the markers count down. Pair with start to choose the first number, and optionally type for letters or Roman numerals.

Baseline · Widely available.

Not deprecated. Boolean: write reversed, not reversed="false". Not related to obsolete rev.

HTML Syntax

syntax.html
<ol reversed> …</ol>
<ol reversed start=" n">…</ol>

In JavaScript: ol.reversed = true (HTMLOListElement).

Attribute Values

Boolean — no value list. Common patterns:

PatternEffectTry it
<ol> (default)Numbers 1, 2, 3 …Try it
<ol reversed>Numbers high → low (e.g. 3, 2, 1)Try it
reversed + startFirst marker = start, then counts downTry it
reversed + typeSame direction with letters or Roman numeralsTry it

Live Preview

Toggle reversed on the sample list. Watch the markers change while item text stays in the same order.

Demo list

Markers count down when reversed is on. <li> order does not flip.

Ordered list
  1. First in the source
  2. Second in the source
  3. Third in the source

reversed: true

HTML Examples

Short demos. Use Try It Yourself for a live editor.

Example 1 — Basic Reversed List

Three items numbered 3, 2, 1 in source order.

HTML
<ol reversed>
  <li>Gold</li>
  <li>Silver</li>
  <li>Bronze</li>
</ol>
Try It Yourself

How It Works

  1. reversed is present on <ol>.
  2. Markers count down (3 → 2 → 1 for three items).
  3. Source order of Gold, Silver, Bronze stays the same.
  4. Use case: rankings, countdowns, top-N lists.

Example 2 — Reversed with start

Begin numbering at a chosen value, then count down.

HTML
<p>Places after the podium:</p>
<ol reversed start="6">
  <li>Fourth</li>
  <li>Fifth</li>
  <li>Sixth</li>
</ol>
Try It Yourself

How It Works

  1. start="6" sets the first marker to 6.
  2. reversed makes the next markers 5, then 4.
  3. start is always an Arabic integer, even with letter/Roman type.
  4. Useful when continuing a countdown from another section.

Example 3 — Reversed with type

Downward markers with Roman numerals (or letters).

HTML
<ol reversed type="i">
  <li>Conclusion</li>
  <li>Body</li>
  <li>Introduction</li>
</ol>
Try It Yourself

How It Works

  1. type="i" uses lowercase Roman markers.
  2. reversed still counts high → low in that style.
  3. Prefer CSS list-style-type when the marker style is only visual.
  4. Keep type in HTML when numbers/letters are part of the meaning (e.g. legal refs).

Edge Cases & Pitfalls

Most mistakes are flipping list items in the DOM or confusing reversed with rev.

order

Markers reverse — not the li nodes

Keep meaningful reading order in the source. Do not reverse the HTML just to get descending numbers.

boolean

reversed="false" is still reversed

Remove the attribute or set ol.reversed = false in script.

element

Only on <ol>

Unordered lists do not use reversed.

name

Not obsolete rev

rev was a link attribute. reversed is for ordered lists.

a11y

Announce meaning in text if needed

Screen readers expose list structure; a short intro (“ranked high to low”) helps everyone.

Browser Support

reversed is an HTML Boolean attribute on <ol>. It is not a Node.js, Deno, or Bun API.

✓ Baseline · Widely available

reversed

Supported across modern browsers (widely available since about July 2015). Safe for production lists.

97% Global support (approx.)
Google Chrome Yes
Full support
Mozilla Firefox Yes
Full support
Apple Safari Yes
Full support
Microsoft Edge Yes
Full support
Opera Yes
Full support
Samsung Internet Yes
Full support
Internet Explorer —
Not supported
reversed Widely supported

Bottom line: Use freely on modern sites. Combine with start when you need a custom first marker.

Key Takeaways

  • Role: Boolean on <ol> — markers count high → low.
  • Source order of <li> stays the same.
  • Combine with start and optionally type.
  • Not the obsolete rev attribute.

One line: reversed makes an ordered list number from high to low.

Frequently Asked Questions

On an ol element, reversed is a Boolean that numbers list items from high to low instead of low to high.
Only the ordered list element ol. It does not apply to ul or menu.
No. Document order of the li items stays the same. Only the numbering (markers) counts downward.
start sets the first marker value (still an Arabic integer). With reversed, numbering continues downward from that start value.
No. rev is an obsolete link-relationship attribute on a and link. reversed is a live Boolean on ol.
No. It is a Baseline widely available HTML attribute on ol.

Next: rows

Control how many visible text lines a textarea shows.

rows tutorial →

About the author

Mari Selvan M P
Mari Selvan M P 🔗

Developer, cloud engineer, and technical writer

  • Experience 12 years building web and cloud systems
  • Focus Full Stack Development, AWS, and Developer Education

I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.

8 people found this page helpful