CSS ::before Selector

Definition

The CSS :before selector allows you to add content before a selected element..

Syntax

The syntax for the :active CSS selector is:

element:before { style_properties }

Example -