HTML & CSS · Middle · Question 51 of 75

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

Explanation

That is the key difference from :where(), which always contributes zero. :is(#hero, .card) p beats .card p even when the element only matched via .card.

Further reading

Problem with a question

HTML & CSS · Middle · question 51

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