1.

Which of the following selects every element that has no children?(a) :empty(b) :enabled(c) :checked(d) :disabledThe question was asked during an online interview.My doubt stems from Server Specific CSS topic in section Layout & Images of CSS

Answer» CORRECT option is (a) :empty

For explanation I would say: :empty selects every

element that has no children including TEXT NODES, :CHECKED selects every checked element, :disabled selects every disabled element, :enabled selects every enabled element.



Discussion

No Comment Found

Related InterviewSolutions