Put in order · JavaScript and React course · Module 7: Styling and Animations

Basics: CSS Specificity from Lowest to Highest

Arrange CSS selectors from lowest to highest specificity:

Items to put in order

  • inline style (style="...")
  • #id
  • .class
  • element (div, p, h1)

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