Home / CSE / CSS - CS :: Discussion

Discussion :: CSS - CS

  1. Which of the following selector is used to selects the element that is the first child of its parent that is of its type?

  2. A.

     :nth-child(n)

    B.

     ::first-line

    C.

     :last-of-type

    D.

     :first-of-type

    View Answer

    Workspace

    Answer : Option D

    Explanation :

    strong:first-of-type {font-size: bigger;}
    /* sets the font size bigger on the first strong tag of its parent */


Be The First To Comment