HTML - attributes - reversed

revision:


Content

"reversed" attribute : boolean attribute that reverse the order syntax some examples


"reversed" attribute : boolean attribute that reverse the order

top

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

The reversed attribute can be used on the following element:<ol>.


syntax

top

<ol reversed></ol >

This attribute does not reverse the order of the list items. This attribute works for all numbering systems: numeric, alphabetic, and roman numerals.


some examples

top
  1. Coffee
  2. Tea
  3. Milk
codes:
                    <ol style="margin-left:3vw;" reversed>
                        <li>Coffee</li>
                        <li>Tea</li>
                    <li>Milk</li>
                    </ol>
                

List of all computer subjects are

  1. Data structures
  2. Operating systems
  3. python programming
  4. DBMS
  5. Computer network
codes:
                    <ol style="margin-left:3vw;" reversed>
                        <li>Data structures</li>
                        <li>Operating systems</li>
                        <li>python programming</li>
                        <li>DBMS</li>
                        <li>Computer network</li>
                    </ol>