Specificity
Reference
Specificity Hierarchy (lowest to highest)
How Scoring Works
Key Rules
Best Practice
Last updated
Last updated
/* (0, 0, 1) = 1 point */
p { color: black; }
/* (0, 1, 0) = 10 points - wins */
.text { color: blue; }
/* (0, 1, 1) = 11 points - wins */
p.text { color: green; }
/* (1, 0, 0) = 100 points - wins */
#content { color: red; }
/* (1, 1, 2) = 112 points - wins */
#content div.text p { color: purple; }