Put in order · HTML and CSS course · Module 9: Modern CSS
CSS Selector Specificity
Arrange CSS selectors from lowest to highest specificity:
Items to put in order
- element (e.g., p)
- inline style (style="")
- #id (e.g., #header)
- .class (e.g., .text)
You can check the correct answer by solving this task in the CodeWorlds game.