CSS Properties: How to set the different type list style

Go to Exercise page


HTML Code:

<!DOCTYPE html>
<title>How to set the different type list style</title>
<style type="text/css">
 		list-style-type: decimal-leading-zero;
 		list-style-type: upper-alpha;
ol.w3r2 {	
		list-style-type: lower-roman;
ul.w3r3 {
		list-style-type: square;
ul.w3r4 {
		list-style-type: circle;
ul.w3r5 {
		list-style-type: disc;

<p>Ordered lists</p>
<ol class="w3r">
<ol class="w3r1">
<ol class="w3r2">
<p>Unordered lists</p>
<ul class="w3r3">
<ul class="w3r4">
<ul class="w3r5">

Live Demo:

See the Pen list-style-type-answer by w3resource (@w3resource) on CodePen.

See the solution in the browser

Supported browser

Firefox logo Chrome logo Opera logo Safari logo Internet Explorer logo
Yes Yes Yes Yes Yes

Go to Exercise page

What is the difficulty level of this exercise?

Test your Programming skills with w3resource's quiz.

Follow us on Facebook and Twitter for latest update.