|
|
HTML <ol> tag
Syntax
<ol> - </ol>
Definition and Usage
The OL element defines a defines an ordered
list. The element contains one or more LI
elements that define the actual items of the list.
Optional Attributes
| Attribute |
Value |
Description |
| compact |
compact_rendering |
Deprecated. Use style sheets |
| start |
start_on_number |
Specifies the number to start on. Deprecated. Use style
sheets |
| type |
A - uppercase alphabetic: A, B, C, D, E, F, G, H, ...
a - lowercase alphabetic: a, b, c, d, e, f, g, h, i, j, k, ...
I - uppercase Roman numerals: I, II, III, IV, V, ...
i - lowercase Roman numerals: i, ii, iii, iv, v, ...
1 - decimal numbers: 1, 2, 3, 4, 5, ... |
Specifies the type of the list. Deprecated. Use style
sheets |
Standard Attributes
| id, class, title, style, dir, lang, xml:lang |
For a full description, go to Standard
Attributes.
Event Attributes
| onclick, ondblclick, onmousedown, onmouseup, onmouseover,
onmousemove, onmouseout, onkeypress, onkeydown, onkeyup |
For a full description, go to Event Attributes.
Example
| Source |
Output |
<ol>
<li>The elder scrolls</li>
<li>Titan Quest</li>
<li>Rise of Nations</li>
</ol> |
- The elder scrolls
- Titan Quest
- Rise of Nations
|
|
|