How to make list-item markers un-ordered lists with CSS
The below HTML and CSS code example shows you how to make list-item markers un-ordered lists with CSS.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>this is the title of the web page</title>
<style type="text/css">
ul.disc {list-style-type: disc;}
ul.circle {list-style-type: circle;}
ul.square {list-style-type: square;}
ul.none {list-style-type: none;}
</style>
</head>
<body>
<ul class="disc">
<li>HTML</li>
<li>XHTML</li>
<li>CSS</li>
</ul>
<ul class="circle">
<li>HTML</li>
<li>XHTML</li>
<li>CSS</li>
</ul>
<ul class="square">
<li>HTML</li>
<li>XHTML</li>
<li>CSS</li>
</ul>
<ul class="none">
<li>HTML</li>
<li>XHTML</li>
<li>CSS</li>
</ul>
</body>
</html>
The above HTML and CSS code makes the lists below, each with different list item-markers.
- HTML
- XHTML
- CSS
- HTML
- XHTML
- CSS
- HTML
- XHTML
- CSS
- HTML
- XHTML
- CSS
Use the text editor below to practice making un-ordered lists with different list-item markers.