InterviewSolution
Saved Bookmarks
| 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-rangeI have been asked this question in an online quiz.This intriguing question originated from Server Specific CSS topic in portion Layout & Images of CSS |
|
Answer» The CORRECT option is (a) :only-child 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. |
|