adplus-dvertising
frame-decoration

Question

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

a.

:first-of-type

b.

:last-child

c.

::first-line

d.

::first-letter

Posted under CSS

Answer: (a).:first-of-type

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

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