CSS & Frontend

Pseudo-element

/ˈsjuːdəʊ ˈelɪmənt/

Definition

A CSS keyword (::before, ::after, ::placeholder) that styles a specific part of an element.

Example in context

"label::after { content: '*'; color: red; } adds a required-field asterisk without extra HTML."

Related terms

Practice this term

Master Pseudo-element in context by working through exercises in the CSS & Frontend module. You'll see the term used in real engineering scenarios with multiple-choice, fill-in-the-blank, and matching drills.