There are a variety of different list types that can be displayed. The type value can be defined on an item by item basis within the ordered or unordered list collections.
Lists support an enumeration display of the following types:
<UL>/<OL> | Type code | Presentation style |
OL | 1 | Numeric |
OL | a | Alphabetical - lower case |
OL | A | Alphabetical - upper case |
OL | i | Roman numerals - lower case |
OL | I | Roman numerals - upper case |
UL | circle | a small open circular bullet |
UL | disc | a small solid circular bullet |
UL | square | a small square bullet |
Some browsers may provide extended functionality, and use of characters other than those specified will yield undefined behavior. This is largely superseded by the CSS styling mechanisms now and is likely to become deprecated in due course.
Prev | Home | Next |
LI object | Up | LI.value |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |