Problem Statement
What is CSS specificity, and why is it important?
Explanation
CSS specificity decides which rule will be applied when multiple rules target the same element. Inline styles have the highest priority, followed by ID selectors, class selectors, and element selectors. Understanding specificity is important to control style conflicts and maintain consistent design.
Code Solution
SolutionRead Only
#id > .class > p
Practice Sets
This question appears in the following practice sets:
