HTML & CSS · Middle · Question 25 of 75

What is the specificity of :where(.card, #hero) p?

Explanation

:where() zeroes out the specificity of its arguments, leaving only p - (0,0,1). That's handy for base styles in libraries: they are easy to override. Its sibling :is() takes the specificity of its most specific argument - :is(.card, #hero) p would be (1,0,1).

Further reading

Problem with a question

HTML & CSS · Middle · question 25

Test yourself

Take the HTML & CSS · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz