CSS Code Completion Hard +35 XP
Pseudo-element
Complete the pseudo-element for content before an element.
CSSFill in the blank
.badge::___ { content: "★"; }Type the missing code
Show answer and explanation
Answer: before
::before creates a pseudo-element inserted before the element's content. It requires the content property.
Hint: Which pseudo-element comes before content?
What this challenge tests
Code Completion in CSS: pseudo-elements, selectors.