Vidyalelo
CSS · Q38

CSS3 Fundamentals

Programming · CSS · question 38

Q38

Which of the following selector is used to selects the elements that are the default among a set of similar elements?

A.
::after
B.
:disabled
C.
:default
Answer
D.
:checked

Answer: Option C

Solution

Answer: Option C
Solution:
:default {background-color: red;}
/* sets the background color of a default button like a submit to red */