Vidyalelo
CSS · Q14

CSS Selectors and CSS Files

Programming · CSS · question 14

Q14

Which of the following selector selects elements that do not match the selector s?

A.
:!(s)
B.
:nth-child(s)
C.
:not(s)
Answer
D.
none of the mentioned

Answer: Option C

Solution

Answer: Option C
Solution:
Example: *:not(h1) {color: black;}