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

The !important rule

What does the !important directive added to a CSS declaration do?

Answer options

  • Removes the rule from the cascade
  • Overrides normal rules regardless of their specificity
  • Lowers the selector's specificity
  • Works only for ID selectors

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