Home » CSS » CSS Introduction » Question
  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?
    1. :last-of-type
    2. :first-of-type
    3. ::first-line
    4. :nth-child(n)
    5. None of these
Correct Option: B

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



Your comments will be displayed only after manual approval.