`::marker` CSS pseudo-element
The ::marker CSS pseudo-element selects the marker box of a list item, which typically contains a bullet or number. It works on any element or pseudo-element set to display: list-item, such as the li and summary elements.
The **`::marker`** [CSS](/docs/Web/CSS) [pseudo-element](/docs/Web/CSS/Reference/Selectors/Pseudo-elements) selects the marker box of a list item, which typically contains a bullet or number. It works on any element or pseudo-element set to [`display: list-item`](/docs/Web/CSS/Reference/Properties/display), such as the li and summary elements.
tabbed-shorter
```css interactive-example
li::marker {
content: "✝ ";
font-size: 1.2em;
}
```
```html interactive-example
<p>Group known as Mercury Seven:</p>
<ul>
<li>Malcolm Scott Carpenter</li>
<li>Leroy Gordon (Gordo) Cooper Jr.</li>
<li>John Herschel Glenn Jr.</li>
<li>Virgil Ivan (Gus) Grissom</li>
<li>Walter Marty (Wally) Schirra Jr.</li>
<li>Alan Bartlett Shepard Jr.</li>
<li>Donald Kent (Deke) Slayton</li>
</ul>
```
## Allowable properties
The `::marker` pseudo-element supports a limited number of CSS properties, including:
- All [animation](/docs/Web/CSS/Guides/Animations#properties) and [transition](/docs/Web/CSS/Guides/Transitions#properties) properties
- All [font properties](/docs/Web/CSS/Guides/Fonts)
- color
- content
- counter-increment, counter-reset, and counter-set
- quotes
- text-combine-upright, unicode-bidi, and direction
- white-space
> [!NOTE]
> The specification states that additional CSS properties may be supported in the future.
## Syntax
```css
::marker {
/* ... */
}
```
## Examples
### HTML
```html
<ul>
<li>Peaches</li>
<li>Apples</li>
<li>Plums</li>
</ul>
```
### CSS
```css
ul li::marker {
color: red;
font-size: 1.5em;
}
```
### Result
Examples
## Specifications
## Browser compatibility
## See also
- HTML elements that have marker boxes by default: ol, li, summary
- [CSS generated content](/docs/Web/CSS/Guides/Generated_content) module
- [CSS lists and counters](/docs/Web/CSS/Guides/Lists) module
- [CSS counter styles](/docs/Web/CSS/Guides/Counter_styles) module
Cite this
"`::marker` CSS pseudo-element". MDN Web Docs. CC BY-SA 2.5 (MDN). https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Selectors/::marker JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy