Which of the following selects every <p> element that has no children?

Lâm Phung

New member
Which of the following selects every <p> element that has no children?
A. :empty
B. :enabled
C. :checked
D. :disabled
 
Answer: a
Explanation: :empty selects every <p> element that has no children including text nodes, :checked selects every checked <input> element, :disabled selects every disabled <input> element, :enabled selects every enabled <input> element.
 

Tìm kiếm

Back
Top