HTML and CSS Reference
In-Depth Information
7.2.1.2. The type attribute
By default, browsers number ordered list items with a sequence of Arab-
ic numerals. Besides being able to start the sequence at some number
other than 1, you can use the type attribute with the <ol> tag to change
the numbering style itself. The attribute may have a value of A for num-
bering with capital letters, a for numbering with lowercase letters, I for
capital Roman numerals, i for lowercase Roman numerals, or 1 for com-
mon Arabic numerals. See Table 7-1 .
Table 7-1. HTML type values for numbering ordered lists
Type value
Generated style
Sample sequence
A
Capital letters
A, B, C, D
a
Lowercase letters
a, b, c, d
I
Capital Roman numerals
I, II, III, IV
i
Lowercase Roman numerals
i, ii, iii, iv
1
Arabic numerals
1, 2, 3, 4
The start and type attributes work in tandem. The start attribute sets
the starting value of the item counter (an integer) at the beginning of
 
Search WWH ::




Custom Search