输出

  1. Switzerland
  2. United Kingdom
  3. United States
  4. Norway

示例代码

This is a demo for Elements/Grouping content and reversed attribute on the ol element.

The reversed attribute is a boolean attribute. If present, indicates that the list is a descending list (..., 3, 2, 1).

If not present, indicates that the list is an ascending list (1, 2, 3, ...).

HTML :

  <ol reversed='true'>
    <li>Switzerland
    <li>United Kingdom
    <li>United States
    <li>Norway
  </ol>