<OL> | NN all IE all HTML all | ||
<OL>...</OL> | End Tag: Required | ||
The OL element is a container for an ordered list of items. An "ordered list" means that the items are rendered with a leading sequence number or letter (depending on the TYPE attribute setting or list-style-type style sheet attribute setting). Content for each list item is defined by a nested LI element. If you apply a style sheet rule to an OL element, the style is inherited by the nested LI elements. | |||
Example
<OL> <LI>Choose Open from the File menu. <LI>Locate the file you wish to edit, and click on the filename. <LI>Click the Open button. </OL> | |||
Object Model Reference
|
COMPACT | NN n/a IE n/a HTML 3.2 | ||
COMPACT | Optional | ||
A Boolean attribute originally designed to let browsers render the list in a more compact style than normal (smaller line spacing between items). This attribute is not implemented in current browsers. | |||
Example
<OL COMPACT>...</OL> | |||
Value The presence of this attribute makes its value true. | |||
|
START | NN all IE all HTML all | ||
START=" | Optional | ||
Assigns a custom starting number for the sequence of items in the OL element. This is convenient when a sequence of items must be disturbed by running body text. Although the value is a number, the corresponding Arabic numeral, Roman numeral, or alphabet letter is used to render the value. This attribute is deprecated in HTML 4.0 in favor of a set of counter-style attributes specified in the CSS2 final recommendation. | |||
Example
<OL START=5> ...</OL> | |||
Value Any positive integer. | |||
| |||
Object Model Reference
|
TYPE | NN all IE all HTML 3.2 | ||||||||||||
TYPE=" | Optional | ||||||||||||
The TYPE attribute provides some flexibility in how the sequence number is displayed in the browser. For an ordered list, the choices are among letters (uppercase or lowercase), Roman numerals (uppercase or lowercase), or Arabic numerals. The TYPE attribute is deprecated in HTML 4.0 in favor of the list-style-type style sheet attribute. | |||||||||||||
Example
<OL TYPE="a">...</OL> | |||||||||||||
Value Possible values are A | a | I | i | 1. Sequencing is performed automatically as follows:
| |||||||||||||
| |||||||||||||
Object Model Reference
|