Name

listStyleType — NN n/a IE 4 DOM n/a

Synopsis

Read/Write

The kind of item marker to be displayed with each item. This attribute is applied only if listStyleImage is none (or not specified). The constant values available for this attribute are divided into two categories. One set is used with UL elements to present a filled disc, an empty circle, or a square (empty on the Macintosh, filled in Windows); the other set is for OL elements, whose list items can be marked in sequences of arabic numerals, roman numerals (uppercase or lowercase), or letters of the alphabet (uppercase or lowercase).

Example

document.all.itemList.style.listStyleType = "circle"

Value

One constant value as a string that is relevant to the type of list container. For UL: circle | disc | square. For OL: decimal | lower-alpha | lower-roman | upper-alpha | upper-roman. OL element sequences are treated as follows:

Type

Example

decimal

1, 2, 3, ...

lower-alpha

a, b, c, ...

lower-roman

i, ii, iii, ...

upper-alpha

A, B, C, ...

upper-roman

I, II, III, ...

Default

disc (for UL); decimal (for OL).

Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.