::before

Adds generated content at the start of an element.

What does ::before do?

::before adds generated content at the start of an element, set with the content property.

.tip::before { content: "💡 "; }

Level: Apprentice · More CSS terms at this level

Updated