Horje

What is HTML <ol> type Attribute

Definition and Usage

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

Tip: The CSS list-style-type property offers more types than the type attribute (see example below).


Browser Support

Syntax

<ol type="1|a|A|i|I">

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)




Category:
Web Tutorial
Sub Category:
HTML Tag
Uploaded by:
Admin