SpinTheMic
Pro

Explain it in 60 seconds

CSS specificity

Frontend Engineering · HTML and CSS · Beginner

What is CSS specificity, and how is it calculated?

What a strong answer covers

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

  • Decides which rule wins on conflict.
  • Inline styles > IDs > classes/attributes/pseudo-classes > elements.
  • Counted per category.
  • !important overrides normal rules.
  • Keep specificity low.
Practise this topic

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

See all topics