-
Which of the following will select all elements within the class?
-
- element
- .class
- element > element
- #id
- None of these
Correct Option: B
.class selects all elements within the given class, #id selects the element within the given id, element > element selects all <p> elements where parent is <div> element, element selects all <p> elements.