1.

Which of the following will select every element that is the only child of its parent?(a) :only-child(b) :only-of-type(c) :optional(d) :out-of-range

Answer» The correct option is (a) :only-child

Easy explanation: :only-child selects every

element that is the only child of its parent, :only-of-type selects every

element that is the only child of its parent, :optional selects input elements with no “required” attribute.



Discussion

No Comment Found