CSS Specificity Calculator
Understand the cascade faster by seeing the exact inline, ID, class, and element contribution of every selector fragment.
Selector A
0,1,2,1#headeridID selectors add 0,1,0,0.
0,1,0,0
.navclassClass selectors add 0,0,1,0.
0,0,1,0
>combinatorCombinators affect matching structure but do not change specificity.
0,0,0,0
aelementElement selectors add 0,0,0,1.
0,0,0,1
:hoverpseudo-classPseudo-classes add 0,0,1,0.
0,0,1,0
Quick reference
1,0,0,00,1,0,00,0,1,00,0,0,10,0,0,00,0,0,0