Open In App

CSS list-style-type Property

Last Updated : 27 Aug, 2024
Comments
Improve
Suggest changes
3 Likes
Like
Report

The list-style-type property is used to customize the look of list item markers, offering various options for discs, circles, squares, and more.

Syntax:

list-style-type: disc | circle | square | decimal | lower-roman | upper-roman | lower-greek | lower-latin | upper-latin | none | inherit;

Property Values:

disc

This is the default value. The marker is a filled circle. 

circle

The marker is a hollow circle. 

square

The marker is a square. 

decimal

The marker is a decimal number, beginning with 1. 

lower-roman

The marker is a lowercase Roman numeral (i, ii, iii, iv, v, etc.). 

upper-roman

The marker is uppercase Roman numerals (I, II, III, IV, V, etc.). 

lower-greek

The marker is a lowercase classical Greek alpha, beta, gamma, ... (??, ?...). 

upper-Latin

The marker is an uppercase ASCII letter (A, B, C, ... Z). 

lower-Latin

The marker is a lowercase ASCII letter (a, b, c, ... z). 

none

No marker is shown in this mode. 

Example 1: In this example, we are using list-style-type: disc;  property.

Output: disc

Example: In this example, we are using list-style-type: circle;  property.

Output: circle

Example: In this example, we are using list-style-type: square;  property.

Output: 

square

Example: In this example, we are using list-style-type: decimal; property.

Output: 

decimal

Example: In this example, we are using list-style-type: lower-roman; property.

Output: 

lower-roman

Example: In this example, we are using list-style-type: upper-roman; property.

Output: upper-roman

Example: In this example, we are using list-style-type: lower-greek; property.

Output: lower-greek

Example:  In this example, we are using list-style-type: lower-latin; property.

Output: lower-latin

Example: In this example, we are using list-style-type: upper-latin; property.

Output: 

upper-latin

Example: In this example, we are using list-style-type: none; property.

Output: none

Note: lower-alpha and upper-alpha are the same as lower-latin and upper-latin respectively. 

Supported Browsers: The browser supported by list-style-type property are listed below:

  • Google Chrome 1.0
  • Edge 12.0
  • Firefox 1.0
  • Opera 3.5
  • Apple Safari 1.0

Explore