+1 vote
in CSS by
What is specificity? How to calculate specificity?

1 Answer

0 votes
by

A process of determining which CSS rule will be applied to an element. It actually determines which rules will take precedence. Inline style usually wins then ID then the class value (or pseudo-class or attribute selector), the universal selector (*) has no specificity. ID selectors have a higher specificity than attribute selectors.

Related questions

0 votes
0 votes
asked Apr 17, 2023 in EMC by Robin
0 votes
asked Nov 25, 2020 in C Plus Plus by SakshiSharma
...