1.

Which of the following selects all elements with a target attribute?(a) attribute(b) attribute=value(c) attribute~=value(d) attribute^=valueThis question was posed to me during an interview.This interesting question is from Server Specific CSS topic in chapter Layout & Images of CSS

Answer»

The correct CHOICE is (a) attribute

For explanation: attribute SELECTS all elements with a target attribute, attribute=value selects all elements for the GIVEN target, attribute~=value selects all elements with a title attribute CONTAINING the given title, attribute=value selects all elements with a lang attribute value starting with the given lang.



Discussion

No Comment Found

Related InterviewSolutions