CSS marker Pseudo element

Опубликовано: 04 Май 2026
на канале: daily tutorials
83
4

::marker is a pseudo-element that represents a bullet or number indicator of elements with a display value of list-item. In most current browser versions, the default user-agent stylesheet applies display: list-item to li and summary elements.
Any element with a list-item display value will generate a marker box that can be selected and styled using ::marker. Using a display value other than list-item—such as display: inline or display: grid—removes the marker box and the ability to use ::marker.