NIELIT O Level Exam

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

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 these इनमें से कोई नहीं




Correct Answer is :

C. :only-child



Explanation
Example: h1:only-child {color: blue;}
Latest Current Affairs 2024 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online MBA 2 years Online MCA Online BCA Best Website and Software Company in Allahabad