Score BreakdownCompare TwoExplanations
Specificity:
0
IDs
2
Classes
3
Elements
Score: (0, 2, 3) = 23
Specificity:
1
IDs
2
Classes
1
Elements
Score: (1, 2, 1) = 121
Selector 2 wins (121 vs 23)

Specificity Reference

(1,0,0) - IDs
#header
#nav
(0,1,0) - Classes
.active
[type="text"]
:hover
(0,0,1) - Elements
div
p
::before
Share:

Love this tool? Explore 999+ more

Free online tools for images, PDFs, text, code, and more. All running in your browser.

Explore All Tools