How can we calculate specificity?

How can we calculate specificity?

1 Like

Start at 0, add 1000 for style attribute, add 100 for each ID, add 10 for each attribute, class or pseudo-class, add 1 for each element name or pseudo-element.

Read more about it here.