Home » HTML » HTML Forms » Question
  1. How image attribute works?
    1. Bring default image to the page
    2. Sets an image background
    3. Set an image as submit button
    4. Set an image anywhere on the page
    5. None of these
Correct Option: C

the image input type set an image as submit button. The syntax is <input type=”image” src=”imghj.gif” alt=”Submit”> 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.



Your comments will be displayed only after manual approval.