adplus-dvertising
frame-decoration

Question

Which of the following Selector selects an element if it’s the only child of its parent with its type?

a.

@media

b.

:target

c.

::selection

d.

:only-of-type

Posted under CSS

Answer: (d).:only-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 an element if it’s the only child of its parent with its type?