::marker

W3C CSS Snapshot 2026

Style the bullet or number that marks a list item.

On this page

Syntax and values

Value or syntaxWhat it does
li::markerMatches the marker box, which supports a limited set of properties including color.

Try the example

<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>::marker</title>
  <style>
li::marker { color: teal; }
  </style>
</head>
<body>
<ul>
  <li>Check in</li>
  <li>Pick up materials</li>
  <li>Find a seat</li>
  <li>Start the activity</li>
</ul>
</body>
</html>

What to expect Only the bullet markers turn teal.

Official references