• Post category:CSS

What are the CSS List Style with Examples | Explained

 CSS list style examples

In this article, we will see what is CSS list style type property with examples.

list-style-type property

It is used to specify the bullet symbol to be displayed in front of list items of Html <ol> or Html <ul> tags

Values:

decimal | decimal-leading-zero | upper-alpha | lower-alpha | upper-roman | lower-roman | disc | circle | square | none etc.

Examples :

<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<ul>
<li style="list-style-type: decimal;">decimal</li>
<li style="list-style-type: decimal-leading-zero;">decimal-leading-zero</li>
<li style="list-style-type: upper-alpha;">upper-alpha</li>
<li style="list-style-type: lower-alpha;">lower-alpha</li>
<li style="list-style-type: upper-roman;">upper-roman</li>
<li style="list-style-type: lower-roman;">lower-roman</li>
<li style="list-style-type: disc ;">disc</li>
<li style="list-style-type: circle ;">circle</li>
<li style="list-style-type: square ;">square</li>

</ul>
</body>
</html>

Output:

css list style examples

Leave a Reply