1.

How image attribute works?(a) Sets an image background(b) Set an image as submit button(c) Set an image anywhere on the page(d) Bring default image to the pageThe question was posed to me in unit test.Question is taken from Input Types for Forms topic in portion HTML Markup, Forms, Video, Audio & Other Multimedia of HTML

Answer»

Correct OPTION is (b) Set an image as SUBMIT button

To explain: the image input type set an image as submit button. The syntax is this sets the image provided by url as the submit button. Input type image sends the X and Y COORDINATES of click and HENCE the image is activated by CLICKING the submit button.



Discussion

No Comment Found

Related InterviewSolutions