HTML <input type="image">
Example
Define an image as a submit button:
<input type="image" src="img_submit.gif" alt="Submit"
width="48" height="48">
Try it Yourself »
More "Try it Yourself" examples below.
Definition and Usage
The <input type="image">
defines an image as a submit button.
The path to the image is specified in the src
attribute.
Browser Support
Attribute | |||||
---|---|---|---|---|---|
type="image" | Yes | Yes | Yes | Yes | Yes |
Syntax
<input type="image">
More Examples
Example
Align input image (with CSS):
<input type="image" src="submit.gif" alt="Submit" style="float:right"
width="48" height="48">
Try it Yourself »