1.

Which is a possible way of finding all the img elements in the document?(a) document(images)(b) document.images[](c) document(img)(d) doc(img)

Answer» The correct answer is (b) document.images[]

For explanation: The best suited option is document.image[] to find all img elements in the document.[index] is used to specify the index of which img tag is to be selected.


Discussion

No Comment Found

Related InterviewSolutions