List properties
list-style-type:disc,circle,square,decimal,upper-roman,nonelist-style-position:outside(default) orinsidelist-style-image:url("icon.png")- Shorthand:
list-style: square inside;
Remove bullets
ul { list-style: none; padding: 0; margin: 0; } — the base for navigation menus.
Custom markers
li::marker { color: tomato; } colours the bullet or number.
Example
Example — Styled lists
HTML
<style>
.square { list-style-type: square; }
.square li::marker { color: tomato; }
.roman { list-style-type: upper-roman; }
.menu { list-style: none; padding: 0; display: flex; gap: 10px; }
.menu li { background: #1f386b; color: white; padding: 6px 12px; border-radius: 4px; }
</style>
<ul class="square"><li>HTML</li><li>CSS</li></ul>
<ol class="roman"><li>Step one</li><li>Step two</li></ol>
<ul class="menu"><li>Home</li><li>About</li><li>Contact</li></ul>