# ::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.

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

Level: Apprentice · [More CSS terms at this level](https://www.ask-codey.com/glossary/subjects/css/apprentice)

Updated: September 27, 2026

Source: https://www.ask-codey.com/glossary/before
