Question · HTML and CSS course · Module 3: CSS Basics

Equal specificity conflict

When two rules have the same specificity, which one is applied?

Answer options

  • The first one defined in the code
  • The last one defined in the code
  • The rule with the shorter selector
  • Neither of them

You can check the correct answer by solving this task in the CodeWorlds game.