Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML ol reversed Attribute

HTML
    reversed property

HTML ol Tag Reference HTML

    tag

    Example

    Display the list order in descending order:

    1. Coffee
    2. Tea
    3. Milk

    Try it »


    Browser support

    Internet ExplorerFirefoxOperaGoogle ChromeSafari

    At present, only Chrome and Safari 6 support the reversed attribute.


    Definition and Usage

    The reversed attribute is a boolean attribute.

    The reversed attribute specifies that the list order is descending (9, 8, 7...) instead of ascending (1, 2, 3...).


    Differences between HTML 4.01 and HTML5

    The reversed attribute is new in HTML5.


    Differences between HTML and XHTML

    In XHTML, attribute minimization is forbidden, so the reversed attribute must be defined as

      .


      Syntax


        HTML ol Tag Reference HTML

          tag