All challenges
Multiple ChoiceIntermediate 30s

Pseudo-class vs pseudo-element

Choose the best answer for: pseudo selectors
Options
  1. 1They're the same, both use single-colon form
  2. 2::hover is correct; :before is a legacy alias
  3. 3:hover is pseudo-class; ::before is pseudo-element
  4. 4:before is correct; ::hover is invalid syntax

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle