HTML & CSS · Middle · Question 51 of 75
What is the specificity of :is(#hero, .card) p?
- ✓Correct answer: (1, 0, 1) -
:is()takes the specificity of its most specific argument - 2(0, 1, 1) - the least specific argument is used
- 3(0, 0, 1) -
:is()adds no specificity
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.