Examveda
Examveda

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

A. :nth-child(n)

B. ::first-line

C. :last-of-type

D. :first-of-type

Answer: Option D

Solution(By Examveda Team)

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

This Question Belongs to CSS >> CSS3 Fundamentals

Join The Discussion

Related Questions on CSS3 Fundamentals