HOME BACK NEXT MENU

 Tag Description:

-==--==--==--==--==-

<OL> Ordered List

Definition: <OL> typically indicates a numbered list of items. In HTML 3.0, you have the ability to control the sequence number, which lets you start at a certain number or continue where the previous list ended. The numbering style itself is left to associated style sheets, which will decide to render numbers in Arabic or upper or lower case roman numerals, for example. An ordered list must be opened with <OL>, followed by an optional list header (<LH>caption</LH>), and then by the first list item. Ordered lists must always be closed with </OL>.

Standard Attributes: CLASS, CLEAR, ID, LANG

Attributes:

CONTINUE

Instructs the user agent to continue where the previous list left off (meaning that the sequence number shouldn't be restarted).

SEQNUM

Sets the sequence number to start the first item, e.g. <OL SEQNUM=19>

COMPACT

COMPACT tells the user agent to use reduced interitem spacing. There are actually several ways to increase a list's compactness: smaller font size, reduced vertical interitem spacing, or even avoidance of line breaks between items. It's best to handle this through the class attribute and associated style sheets.

Context: <OL> is legal within

<BANNER>, <BODY>, <BODYTEXT>, <DD>, <DIV>, <FIGTEXT>, <FN>, <FORM>, <LI>, <NOTE>, <TD>, <TH>

The following markup can be used within <OL>

<LH><LI>

Suggested style/usage: Close Tag: REQUIRED

Examples:

<OL>
<LI>up
<LI>up
<LI>and away
</OL>

-==--==--==--==--==-
HOME BACK NEXT MENU

E-Mail: HTML for Dummies at html4dum@lanw.com
URL: http://www.lanw.com/html4dum/h4d2e/t0059.htm
Text - Copyright © 1995, 1996 Ed Tittel & Steve James.
For Dummies, the Dummies Man logo and Dummies Press are trademarks or registered trademarks of Wiley Publishing, Inc. Used with Permission.
Web Layout - Copyright © 1996, LANWrights
Revised -- May, 2002 [MCB]