HTML form with submit button as image
How to submit a form using image as button?
Html Button style.
Normally we use the submit button to submit a form. But, we can also use any image instead of buttons for the same. This style of buttons can be created using the attribute “type = image”
This style of buttons can be used along with the following attributes to submit a form.
name – defines an internal name to the button.
type – defines the input type(text,image,etc,.)
src – defines the URL of the image.
width – defines the width of the image.
height – defines the height of the image.
It also supports other attributes like align, vspace, hspace etc.