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 */
Related Questions on CSS3 Fundamentals
Which of the following css property specifies an image to use as the background of an element?
A. background
B. background-img
C. background-image
D. none of the mentioned
Which of the following css property specifies a delay for the transition effect?
A. transition-delay
B. transition-effect
C. transition
D. transition-duration
A. rotateY()
B. rotate-Y()
C. rotate-Yaxis()
D. none of the mentioned
Which of the following property defines where a 3D element is based in the x- and the y-axis?
A. transform-style
B. perspective(n)
C. perspective-origin
D. none of the mentioned
Join The Discussion