Problem Statement
Explain how CSS specificity is calculated.
Explanation
Specificity determines which CSS rule wins when multiple rules target the same element. The hierarchy is: Inline styles (highest), IDs, Classes/Attributes/Pseudo-classes, and then Elements/Pseudo-elements. A rule with an ID selector overrides one with only classes or tags.
Code Solution
SolutionRead Only
#id (100 points) > .class (10 points) > element (1 point)
