Vidyalelo
CSS · Q41

CSS3 Fundamentals

Programming · CSS · question 41

Q41

Which of the following selector is used to selects the element that is the root of the document?

A.
:only-of-type
B.
:target
C.
:root
D.
::selection
Answer

Answer: Option D

Solution

Answer: Option D
Solution:
:root {background-color: blue;}
/* sets the background color to blue for the root element */