HTML form with submit button as image

HTML form with submit button as image

How to submit a form using image as button?
Html Button style.

Explanation

Image button:
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”.

Example Code:


Name:

Result:

Name:

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

Leave a Reply

Your email address will not be published. Required fields are marked *