What does the CSS ":is()" and ":where()" pseudo-classes allow, and what is the key difference between them?
Correct! Well done.
Incorrect.
The correct answer is B) Both group multiple selectors into a concise form (e.g. ":is(header, footer) a"), but :is() takes the specificity of its most specific argument, while :where() always has zero specificity, useful for easily-overridable base styles
Correct Answer
Both group multiple selectors into a concise form (e.g. ":is(header, footer) a"), but :is() takes the specificity of its most specific argument, while :where() always has zero specificity, useful for easily-overridable base styles
These functional pseudo-classes simplify writing combined selectors; the specificity difference (:is() contributes its most specific argument's specificity, :where() contributes none) makes :where() particularly useful for low-priority resets that are easy to override.