This class accepts lots of value in tailwind CSS in which all the properties are covered as in class form. It is the alternative to the CSS List Style Type property. This class specifies the appearance of the list item marker (such as a disc, character, or custom counter style) if the ‘list-style-image’ has the value ‘none’.
List Style Type classes:
- list-none: No marker is shown in this mode.
- list-disc: This is the default value. The marker is a filled circle.
- list-decimal: A marker is a decimal number, beginning with 1.
Syntax:
<element class="List Style Type">...</element>
Example:
HTML
<!DOCTYPE html>
< head >
< link href =
rel = "stylesheet" >
</ head >
< body class = "text-center mx-4 space-y-2" >
< h1 class = "text-green-600 text-5xl font-bold" >
GeeksforGeeks
</ h1 >
< b >Tailwind CSS List Style Type Class</ b >
< div class = "mx-24 bg-green-200 text-justify px-6" >
< ul class = "list-disc" >
< li >Self learning</ li >
< li >Contribute at Open Source</ li >
< li >Gain Stack overflow respect</ li >
</ ul >
< br >
< ol class = "list-decimal" >
< li >Self learning</ li >
< li >Contribute at Open Source</ li >
< li >Gain Stack overflow respect</ li >
</ ol >
< br >
< ul class = "list-none" >
< li >Self learning</ li >
< li >Contribute at Open Source</ li >
< li >Gain Stack overflow respect</ li >
</ ul >
</ div >
</ body >
</ html >
|
Output:

List style type
Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape,
GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out -
check it out now!