SpinTheMic
Pro

Explain it in 60 seconds

Pseudo-classes and pseudo-elements

Frontend Engineering · HTML and CSS · Beginner

What is the difference between pseudo-classes and pseudo-elements?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Pseudo-class: element state or position (:hover, :focus, :nth-child).
  • Pseudo-element: part of element or generated content (::before, ::after, ::placeholder).
  • Single vs double colon.
  • :focus-visible for keyboard focus.
  • Generated content not accessible as real content.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics