1.

Which of the following will select all elements within the class?(a) .class(b) #id(c) element(d) element>elementThe question was asked during a job interview.Question is from Server Specific CSS topic in division Layout & Images of CSS

Answer»

The correct option is (a) .CLASS

For EXPLANATION I would say: .class SELECTS all elements WITHIN the given class, #id selects the element within the given id, element>element selects all

elements where PARENT is

element, element selects all

elements.



Discussion

No Comment Found

Related InterviewSolutions