ol type Attribute - HTML CSS HTML Tag

HTML CSS examples for HTML Tag:ol

Description

The type attribute specifies the kind of marker to use in the list (letters or numbers).

Attribute Values

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:

Demo Code

ResultView the demo in separate window

<!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>

Related Tutorials