What is specificity?


#1

Question

What is specificity?

Answer

When we have two or more conflicting CSS declarations on the same element, the browser gives the declarations a score (the specificity) to determine which declaration will be applied to the element. The declaration with the higher score will be applied to the element.