Web features explorer

::before and ::after

Widely available
Tags: css

The ::before and ::after CSS pseudo-elements select inline boxes preceding and following an element. They are often used with the content property to generate cosmetic content. To learn more, see ::after, ::before at MDN.

Compatibility (view on caniuse.com)