HTML CSS examples for HTML Tag:ol
You can change type of list using the attributes defined by the ol element.
You use the start attribute to define the ordinal value of the first item in the list.
If this attribute is not defined, the first item is assigned the ordinal value of 1.
You use the type attribute to indicate which marker should be displayed next to each item.
The following table shows the supported values for type attribute.
Value | Description | Example |
---|---|---|
1 | Decimal numbers (default) | 1., 2., 3., 4. |
a | Lowercase Latin characters | a., b., c., d. |
A | Uppercase Latin characters | A., B., C., D. |
i | Lowercase Roman characters | i., ii., iii., iv. |
I | Uppercase Roman characters | I., II., III., IV. |
If the reversed attribute is defined, then the list is numbered in descending order.
<html> <head></head> <body></body> </html><!--from www .ja va 2s. c o m-->