Home / CSE / CSS - CS :: Discussion

Discussion :: CSS - CS

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

  2. A.

     :only-of-type

    B.

     :target

    C.

     :root

    D.

     ::selection

    View Answer

    Workspace

    Answer : Option D

    Explanation :

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


Be The First To Comment