HTML | DOM Style listStyleType Property

The Style listStyleType property is used for setting or returning the list-item marker type.
It has default values as “disc” for <ul> and “decimal” for <ol> and returns a string which represents the type of the list.

Syntax :

  • To get the property:
  • To set the property: = value"

Property Values:

  • armenian: It is used to represent the marker in traditional Armenian numbering.
  • circle: It is used to represent the marker in a circle.
  • decimal: It is used to represent the marker in decimal format.
  • lower-alpha: It is used to represent the marker in lower-alpha (a, b, c, d, e, etc).
  • lower-roman: It is used to represent the marker in lower-roman (i, ii, iii, iv, v, etc).

Below program illustrates the Style listStyleType property method :

Example: Changing the list-item marker type to “lower-alpha”.





<!DOCTYPE html>
    <title>Style listStyleType Property in HTML</title>
        h1 {
            color: green;
        h2 {
            font-family: Impact;
    <h2>Style listStyleType Property</h2>
    <b>Geeksforgeeks offers the following courses :</b>
    <ul id="courses">
        <li>Fork Python</li>
        <li>Fork CPP</li>
        <li>Sudo Placement</li>
        <li>Fork Java</li>
    <p>For changing list-item marker, 
      double click the 
      "Change list-item marker to lower alpha" 
      button: </p>
    <button type="button" ondblclick="list()">
        Change list-item marker to lower alpha
        function list() {
                .style.listStyleType = "lower-alpha";



  • Before Clicking the button:

  • After clicking the button

Supported Browsers: The browser supported by HTML | DOM Style listStyleType Property
are listed below:

  • Google Chrome
  • Internet Explorer
  • Firefox
  • Opera
  • Apple Safari

My Personal Notes arrow_drop_up

If you like GeeksforGeeks and would like to contribute, you can also write an article using or mail your article to See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.

Article Tags :

Be the First to upvote.

Please write to us at to report any issue with the above content.