Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML DOM Style listStyleType Property

Style listStyleType Property

Style Object Reference The Style object


Definition and Usage

The listStyleType property sets or returns the type of the list item marker.

Syntax

Sets the listStyleType property:

Object.style.listStyleType="

value

"

Returns the listStyleType property:

Object.style.listStyleType

Value Description
armenian The marker is the traditional Armenian numbering.
circle The marker is a hollow circle.
cjk-ideographic The marker is a simple ideographic number.
decimal The marker is a number. This is
    the default value.
decimal-leading-zero The marker is a number with leading zeros (01, 02, 03, etc.)
disc The marker is a filled circle. This is
    the default value.
georgian The marker is the traditional Georgian numbering.
hebrew The marker is the traditional Hebrew numbering.
hiragana The marker is the traditional hiragana numbering (a, i, u, e, o, ka, ki, etc.).
hiragana-iroha The marker is the traditional hiragana iroha numbering (i, ro, ha, ni, ho, he, to, etc.).
inherit The listStyleType property value is inherited from the parent element.
katakana The marker is the traditional katakana numbering (A, I, U, E, O, KA, KI, etc.).
katakana-iroha The marker is the traditional katakana iroha numbering (I, RO, HA, NI, HO, HE, TO, etc.).
lower-alpha The marker is lowercase English letters (a, b, c, d, e, etc.).
lower-greek The marker is lowercase Greek letters (alpha, beta, gamma, etc.).
lower-latin The marker is lowercase Latin letters (a, b, c, d, e, etc.).
lower-roman The marker is lowercase Roman numerals (i, ii, iii, iv, v, etc.).
none No marker is displayed.
square The marker is a filled square.
upper-alpha The marker is uppercase English letters (A, B, C, D, E, etc.).
upper-latin The marker is uppercase Latin letters (A, B, C, D, E, etc.).
upper-roman The marker is uppercase Roman numerals (I, II, III, IV, V, etc.).

Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the listStyleType property.

**Note:** IE9 and Opera 11 do not support these property values: cjk-ideographic, hebrew, hiragana, hiragana-iroha, katakana and katakana-iroha.

**Note:** IE8, if a !DOCTYPE is specified, only supports these property values: decimal-leading-zero, lower-greek, lower-latin, upper-latin, armenian, georgian and inherit.


Example

Example

Changes the type of the list item marker:

Runoob Tutorial(runoob.com)

Try it »


More examples

All the different list style types
View all the different list style types.


Style Object Reference The Style object