O'Reilly logo

Dynamic HTML: The Definitive Reference by Danny Goodman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

<OL> — NN all IE all HTML all

Synopsis

<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

IE

[window.]document.all.elementID

Attributes

CLASS

DIR

LANG

START

TITLE

COMPACT

ID

LANGUAGE

STYLE

TYPE

Event Handler Attributes

Handler

NN

IE

HTML

onClick

n/a

4

4

onDblClick

n/a

4

4

onDragStart

n/a

4

n/a

onHelp

n/a

4

n/a

onKeyDown

n/a

4

4

onKeyPress

n/a

4

4

onKeyUp

n/a

4

4

onMouseDown

n/a

4

4

onMouseMove

n/a

4

4

onMouseOut

n/a

4

4

onMouseOver

n/a

4

4

onMouseUp

n/a

4

4

onSelectStart

n/a

4

n/a

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required