Examveda
Examveda

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: Option D

Solution(By Examveda Team)

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

This Question Belongs to CSS >> CSS3 Fundamentals

Join The Discussion

Related Questions on CSS3 Fundamentals