Which is a possible way of finding all the img elements in the document?

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: b
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.
 

Tìm kiếm

Back
Top