Home » CSS » Css miscellaneous » Question
  1. Which of the following will select all elements within the class?
    1. element
    2. .class
    3. element > element
    4. #id
    5. 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.



Your comments will be displayed only after manual approval.