The three <ol> tag attributes
, by
Aurélien Aries
Reversed
The new HTML5 attribute for the <ol>
tag is the reversed
attribute. With it, the list order, means only the increment, usually ascending gets descending (10,9,8,…).
Example
- Ziggy Stardust
- Moonage Daydream
- velvet goldmine
- Ziggy Stardust
- Moonage Daydream
- velvet goldmine
You can also write <ol reversed="reversed">
or <ol reversed="">
Browser support for the reversed attribute
- Chrome 18
- Safari 6.0
- iOS 6.0
- RIM Tablet OS 2.1
- BlackBerry 10
Type
This one allows you to choose the type of increment you want. You have a choice between : “1”, “a”, “A”, “i” or “I”.
Example
- Ziggy Stardust
- Moonage Daydream
- velvet goldmine
- Ziggy Stardust
- Moonage Daydream
- velvet goldmine
Start
This one tells the counter increment where to start counting.
Example
- Ziggy Stardust
- Moonage Daydream
- velvet goldmine
- Ziggy Stardust
- Moonage Daydream
- velvet goldmine
- Ziggy Stardust
- Moonage Daydream
- velvet goldmine