before

The before CSS pseudo-element specifies a child immediately before the originating element.

Syntax

selector::before
{
    property: value;
}

Examples

Internal

after

External

World Wide Web Consortium (W3C)

Home Menu