list-style-type: square/disc/circle : list style type « CSS « HTML / CSS






list-style-type: square/disc/circle

  

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
    <head>
        <title></title>
        <style type='text/css'>
            li.square {
                list-style-type: square;
            }
            li.disc {
                list-style-type: disc;
            }
            li.circle {
                list-style-type: circle;
            }
        </style>
    </head>
    <body>
        <ul>
            <li class='square'>This list item has a square marker.</li>
            <li class='square'>This list item has a square marker.</li>
            <li class='disc'>This list item has a disc marker.</li>
            <li class='disc'>This list item has a disc marker.</li>
            <li class='circle'>This list item has a circle marker.</li>
            <li class='circle'>This list item has a circle marker.</li>
        </ul>
    </body>
</html>

   
  








Related examples in the same category

1.The list-style-type Property
2.'list-style-type' Example
3.The table that follows lists the popularly supported values for ordered lists.
4.list-style-type: upper-greek
5.list-style-type: square
6.list-style-type: disc
7.list-style-type: circle
8.list-style-type: lower-roman
9.list-style-type: upper-latin
10.list-style-type: lower-latin
11.list-style-type: lower-greek
12.list-style-type: georgian
13.list-style-type: decimal
14.list-style-type: decimal-leading-zero
15.list-style-type: armenian
16.list style type: armenian
17.list style type: decimal and decimal leading zero
18.list style type: georgian
19.list style type: lower greek
20.list style type: lower latin
21.list style type: lower latin, upper latin
22.list style type: lower roman
23.list style type: lower roman upper roman
24.list style type: square, disc, circle
25.list style type: upper greek
26.list style type: upper latin
27.list style type: upper roman
28.list-style-type: upper-roman; list-style-position: inside;
29.list-style-type: decimal; list-style-position: outside;
30.Changing unordered list markers to square
31.UL list-style: none
32.UL list-style-type: disc;
33.list-style-type: none
34.Character marker for list
35.Entity marker
36.list-style-type: lower-latin/upper-latin