Set the ordered list to use lowercase alphabetical letters:
The type property sets or returns the value of the type attribute of an ordered list.
The type attribute specifies the kind of marker to use in the list (letters or numbers).
The type property is supported in all major browsers.
Return the type property:
Set the type property:
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) |
Return Value: | A String, representing the kind of marker used in the ordered list |
---|
Return the kind of marker used in an ordered list:
The result of x will be:
Set the ordered list to use uppercase alphabetical letters:
Set the ordered list to use lowercase roman numbers:
Set the ordered list to use uppercase roman numbers:
HTML reference: HTML <ol> type attribute