-
Which of the following will select every
element that is the only child of its parent?
-
- :optional
- :out-of-range
- :only-of-type
- :only-child
- None of these
Correct Option: D
:only-child selects every <p> element that is the only child of its parent, :only-of-type selects every <p> element that is the only child of its parent, :optional selects input elements with no “required” attribute.