Question 1 of 5
One rule uses a single class, another uses seven element selectors. Which wins, and why?
Compare the triplets column by column, from the left, like version numbers.
Specificity compares selectors as three counters: identifiers, then classes and pseudo-classes, then elements. Comparison runs column by column from the left, so the first column where they differ settles it, and a class outranks any pile of element selectors.
Review this lesson