The list-style-type property sets the type of the list item marker.
ul {
list-style-type: square;
}
ol {
list-style-type: upper-alpha;
}
| Property | Value | Example |
|---|---|---|
| list-style-type | ||
| none |
|
|
| disc |
|
|
| circle |
|
|
| square |
|
|
| decimal |
|
|
| upper-alpha |
|
|
| lower-alpha |
|
|
| upper-roman |
|
|
| lower-roman |
|
|
| decimal-leading-zero |
|
|
| lower-greek |
|
|
| upper-latin |
|
|
| lower-latin |
|
|
| hebrew |
|
|
| armenian |
|
|
| georgian |
|
|
| cjk-ideographic |
|
|
| hiragana |
|
|
| katakana |
|
|
| hiragana-iroha |
|
|
| katakana-iroha |
|
|
<html>
<head>
<title>TAG index</title>
<style type="text/css">
ul { list-style-type: square; }
ol { list-style-type: upper-alpha; }
</style>
</head>
<body>
<ul>
<li>First list item</li>
<li>Second list item</li>
<li>Third list item</li>
</ul>
<ol>
<li>First list item</li>
<li>Second list item</li>
<li>Third list item</li>
</ol>
</body>
</html>