HTML OL type attribute


Set the bullet points to roman numbers in an ordered list:
<ol type="I">

Definition and Usage

The type attribute specifies which kind of bullet points will be used in an ordered list.

Browser Support

The type attribute is deprecated, but still supported in all major browsers.

Compatibility Notes

The type attribute of the ol element was deprecated in HTML 4.01, and is not supported in XHTML 1.0 Strict DTD.
Use CSS instead.
CSS syntax: <ol style="list-style-type:upper-roman">


<ol type="value">

Attribute Values

Value Description
1 Numerical ordered list (this is default) (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)
HTML OL type attribute Reviewed by 1000sourcecodes on 21:50 Rating: 5
Powered by Blogger.