5 out of 6 rated this helpful - Rate this topic

ol element | ol object

[This documentation is preliminary and is subject to change.]

Draws lines of text as a numbered list.

Document Object Model (DOM) Level 2 HTML Specification, Section 1.6.5HTML 4.01 Specification, Section 10.2

Standards information

HTML information

Closing Tagrequired
CSS Displayblock

DOM Information

Inheritance Hierarchy

 Node
  Element
   HTMLElement
     ol

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

li

 

 

Build date: 3/8/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ