Name

ol — <ol> . . . </ol>

Defines an ordered (numbered) list that consists of one or more list items (li ). The user agent inserts item numbers automatically. The start and type attributes are deprecated in favor of Cascading Style Sheet controls.

Attributes

Core, Internationalization, Events

compact="compact"

Deprecated. Displays the list as small as possible. Few browsers support the compact attribute.

start="number"

Deprecated. Starts the numbering of the list at number instead of at 1.

type="1|A|a|I|i"

Deprecated. Defines the numbering system for the list as follows:

Type value

Generated style

Sample sequence

1

Arabic numerals (default)

1, 2, 3, 4

A

Uppercase letters

A, B, C, D

a

Lowercase letters

a, b, c, d

I

Uppercase Roman numerals

I, II, III, IV

i

Lowercase Roman numerals

i, ii, iii, iv

Example

<ol>
  <li>Get out of bed</li>
  <li>Take a shower</li>
  <li>Walk the dog</li>
</ol>

Get HTML and XHTML Pocket Reference, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.