ol element | ol object
[This documentation is preliminary and is subject to change.]
Draws lines of text as a numbered list.
![]() ![]() |
Standards information
- Document Object Model (DOM) Level 2 HTML Specification, Section 1.6.5
- HTML 4.01 Specification, Section 10.2
HTML information
| Closing Tag | required |
|---|---|
| CSS Display | block |
DOM Information
Inheritance Hierarchy
Remarks
The TYPE attribute sets the list type for all ensuing lists unless a different type value is set.
Examples
This example uses the OL element to create a numbered list.
<OL> <LI>This is the first item in the list. <LI>And this is the second item in the list. </OL> <OL START=3> <LI>This is item number 3. </OL> <OL TYPE=A> <LI>This is item A. </OL>
See also
Build date: 3/8/2012

