<OL> | NN all IE all HTML all
<OL>...</OL> | HTML 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>
        <LI>Locate the file you wish to edit, and click on the filename.</LI>
        <LI>Click the Open button.</LI>
    </OL>
Object Model Reference
    [window.]document.getElementById(elementID)
Element-Specific Attributes

compact | start | type

Element-Specific Event Handler Attributes
None.

compact | NN 6 IE4 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). Although listed as a supported attribute for HTML compatibility, the compact attribute has no effect on mainstream browsers. Use style sheets to control element sizes and line spacing.
Example
    <OL compact>...</OL>
Value
The presence of this attribute makes its value true.
Default
false

lang | NN 3 IE 4 HTML 4
lang="languageCode" | Optional
The language being used for the element's attribute values and content. A browser can use this information to assist in proper rendering of content with respect to details such as treatment of ligatures (when supported by a particular font or required by a written language), quotation marks, and hyphenation. Other applications and search engines might use this information to aid the selection of spell-checking dictionaries and the creation of indices.
Example
    <SPAN lang="de">Deutsche Bundesbahn</SPAN>
Value
Case-insensitive language code.
Default
Browser default.
Object Model Reference
    [window.]document.getElementById(elementID).lang

start | NN all IE all HTML all
start="number" | 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.
Example
    <OL start="5"> ...</OL>
Value
Any positive integer.
Default
None.
Object Model Reference
    [window.]document.getElementById(elementID).start

type | NN all IE all HTML 3.2
type="labelType" | 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 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.
Default
1
Object Model Reference
    [window.]document.getElementById(elementID).type