Which of the following will select all elements within the class?

Nguyễn Hào

New member
Which of the following will select all elements within the class?
A. .class
B. #id
C. element
D. element>element
 
Answer: a
Explanation: .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.
 

Tìm kiếm

Back
Top