Which of the following selector selects an element if it’s the only child of its parent?
A
:root
B
:nth-oftype(n)
C
:only-child
D
none of the mentioned
Correct Answer: :only-child
Example: h1:only-child {color: blue;}