list-style-typeNN 4 IE 4 CSS 1

Inherited: Yes

Sets the kind of item marker to be displayed with each item. This attribute applies only if list-style-image 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 filled square (except on Version 4 browsers for the Macintosh); the other set is for ol elements, which have list items that can be marked in sequences of Arabic numerals, Roman numerals (uppercase or lowercase), or letters of the alphabet (uppercase or lowercase), and some other character sequences of other languages if the browser and operating system supports those languages.

 
CSS Syntax
 
list-style-type: listStyleType
 
Value

One constant value that is relevant to the type of list container. For ul: circle | disc | square. For ol: decimal | decimal-leading-zero | lower-roman | upper-roman | lower-greek | lower-alpha | lower-latin | upper-alpha | upper-latin | hebrew | armenian | georgian | cjk-ideographic | hiragana | katakana | hiragana-iroha | katakana-iroha. Commonly-supported ol element sequences are treated as shown in the following table.

TypeExample
decimal1, 2, 3, ...
decimal-leading-zero01, 02, 03, ...
lower-alphaa, b, c, ...
lower-greek, ...
lower-romani, ii, iii, ...
upper-alphaA, B, C, ...
upper-romanI, II, III, ...
 
Initial Value

disc (for first level ul); decimal (for ol).

 
Example
 
ul {list-style-type: circle}
li {list-style-type: upper-roman}
 
Applies To

dd, dt, li, ol, and ul elements and any other element assigned the display:list-item style attribute.

 
Object Model Reference
 
[window.]document.getElementById("elementID").style.listStyleType