WeCodeAcademy
❮ :has(selector)::after ❯

::before

Inserts content before an element.

Syntax

p::before { content: "..." }

Example

Examplehtml
Open in editor »

← All of CSS Selectors