W3Schools.com

HTML5 <ol> reversed Attribute

HTML5 ol Tag Reference HTML5 <ol> tag

Example

Descending list order:

<ol reversed="reversed">
  <li>Coffee</li>
  <li>Tea</li>
  <li>Milk</li>
</ol>

Try it yourself »

Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The reversed attribute is currently supported only in Chrome.


Definition and Usage

The reversed attribute is a boolean attribute.

When present, it specifies that the list order should be descending (9,8,7...), instead of ascending (1, 2, 3...).


Differences Between HTML 4.01 and HTML5

The reversed attribute is new in HTML5.


Syntax

<ol reversed="reversed">

Note: The reversed attribute is a boolean attribute, and can be set in the following ways:

  • <ol reversed>
  • <ol reversed="reversed">
  • <ol reversed="">

HTML5 ol Tag Reference HTML5 <ol> tag
WEB HOSTING
Best Web Hosting
PHP MySQL Hosting
Best Hosting Coupons
UK Reseller Hosting
Cloud Hosting
Top Web Hosting
$3.98 Unlimited Hosting
Premium Website Design
WEB BUILDING
XML Editor - Free Trial!
FREE Website BUILDER
Best Website Templates Top CSS Templates
CREATE HTML Websites
EASY WEBSITE BUILDER
W3SCHOOLS EXAMS
Get Certified in:
HTML, CSS, JavaScript, XML, PHP, and ASP
W3SCHOOLS BOOKS
New Books:
HTML, CSS
JavaScript, and Ajax
STATISTICS
Browser Statistics
Browser OS
Browser Display
SHARE THIS PAGE