HTML Ordered List Element (OL)

Attribute definitions

type = style-information
This attribute sets the style of a list item. Currently available values are intended for visual user agents. Possible values are described below (along with case information).
start = number
For OL only. This attribute specifies the starting number of the first item in an ordered list. The default starting number is "1". Note that while the value of this attribute is an integer, the corresponding label may be non-numeric. Thus, when the list item style is uppercase latin letters (A, B, C, ...), start=3 means "C". When the style is lowercase roman numerals, start=3 means "iii", etc.
value = number
For LI only. This attribute sets the number of the current list item. Note that while the value of this attribute is an integer, the corresponding label may be non-numeric (see the start attribute).
compact
When set, this boolean attribute gives a hint to visual user agents to render the list in a more compact way. The interpretation of this attribute depends on the user agent.


For the OL element, possible values for the type attribute are summarized in the table below (they are case-sensitive):

TypeNumbering style
1arabic numbers1, 2, 3, ...
alower alphaa, b, c, ...
Aupper alphaA, B, C, ...
ilower romani, ii, iii, ...
Iupper romanI, II, III, ...

Source code:
<OL>
<LI> item number one.</LI>
<LI> item number two</LI>
<LI> item number three</LI>
</OL>




previous slide | next slide
Return to Beginning of Presentation
Return to Software Development Library