The specificity of a selector is broken down into four essential levels: a, b, c and d.
a = 1, if there is inline style
b = Total number of ID selectors
c = Number of classes, attribute selectors & pseudo-classes
d = Number of type selector & pseudo-element selectors
We can calculate specificity of any CSS selector.
example:
Selector
Specificity
style=” “
1, 0, [...]




