Home HTML Attributes reversed HTML reversed Attribute Definition
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 .
Syntax
HTML Syntax <ol reversed> …</ol>
<ol reversed start=" n ">…</ol>
In JavaScript: ol.reversed = true (HTMLOListElement ).
Values
Attribute Values Boolean — no value list. Common patterns:
Pattern Effect Try it <ol> (default)Numbers 1, 2, 3 … Try it<ol reversed>Numbers high → low (e.g. 3, 2, 1) Try itreversed + startFirst marker = start, then counts down Try itreversed + typeSame direction with letters or Roman numerals Try it
Try it
Live Preview Toggle reversed on the sample list. Watch the markers change while item text stays in the same order.
Code
HTML Examples Short demos. Use Try It Yourself for a live editor.
1. Basic reversed 2. With start 3. With type Example 1 — Basic Reversed List Three items numbered 3, 2, 1 in source order.
<ol reversed>
<li>Gold</li>
<li>Silver</li>
<li>Bronze</li>
</ol> How It Works reversed is present on <ol>.Markers count down (3 → 2 → 1 for three items).Source order of Gold, Silver, Bronze stays the same.Use case: rankings, countdowns, top-N lists.Example 2 — Reversed with start Begin numbering at a chosen value, then count down.
<p>Places after the podium:</p>
<ol reversed start="6">
<li>Fourth</li>
<li>Fifth</li>
<li>Sixth</li>
</ol> Places after the podium:
Fourth Fifth Sixth How It Works start="6" sets the first marker to 6.reversed makes the next markers 5, then 4.start is always an Arabic integer, even with letter/Roman type.Useful when continuing a countdown from another section.Example 3 — Reversed with type Downward markers with Roman numerals (or letters).
<ol reversed type="i">
<li>Conclusion</li>
<li>Body</li>
<li>Introduction</li>
</ol> Conclusion Body Introduction How It Works type="i" uses lowercase Roman markers.reversed still counts high → low in that style.Prefer CSS list-style-type when the marker style is only visual.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 reversedRemove 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.
Compatibility
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.
Remember
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 What does the HTML reversed attribute do? On an ol element, reversed is a Boolean that numbers list items from high to low instead of low to high.
Which element supports reversed? Only the ordered list element ol. It does not apply to ul or menu.
Does reversed change the order of the li elements? No. Document order of the li items stays the same. Only the numbering (markers) counts downward.
How does reversed work with start? start sets the first marker value (still an Arabic integer). With reversed, numbering continues downward from that start value.
Is reversed the same as rev? No. rev is an obsolete link-relationship attribute on a and link. reversed is a live Boolean on ol.
Is reversed deprecated? 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 Developer, cloud engineer, and technical writer
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
Helpful Share Copy link Suggestion