HTML CSS examples for HTML Tag:ol
The type attribute specifies the kind of marker to use in the list (letters or numbers).
Value | Description |
---|---|
1 | Default. Decimal numbers (1, 2, 3, 4) |
a | Alphabetically ordered list, lowercase (a, b, c, d) |
A | Alphabetically ordered list, uppercase (A, B, C, D) |
i | Roman numbers, lowercase (i, ii, iii, iv) |
I | Roman numbers, uppercase (I, II, III, IV) |
The following code shows how to create An ordered list with uppercase roman numbers:
<!DOCTYPE html> <html> <body> <ol type="I"> <li>C</li> <li>A</li> <li>B</li> </ol><!-- w w w .jav a 2 s.c om--> </body> </html>