Web features explorer

::before and ::after

Widely available since 2018-01-29
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.

Learning resources on MDN

Browser support (view on caniuse.com)