Specificity and the Cascade

Talk it through with a coach who asks guiding questions and gives hints until you reach the answer. Pass to mark the challenge as completed.

The problem

  • easy
  • Pro

You add a class to make a button red, but it stays blue, and a colleague suggests adding important. Explain how the browser decides which CSS rule wins, and a better fix.

Talk this problem through with an AI coach

This is a Pro challenge. Sign in with Google, then upgrade to start a voice session.

Start free →