<input type="image" /> Description:
The <input type="image" /> tag creates submit buttons using images.
<input type="image" /> Web Browser Support:
- Netscape 2, 3, 4, 6, 7
- Mozilla 1
- Firefox 1
- Internet Explorer 2, 3, 4, 5, 6
- Opera 3, 4, 5, 6, 7, 8
- Safari 1
- WebTV / MSNTV
- AvantGo Palm OS
- AvantGo Windows CE
- HTML 3.2, 4.0
- XHTML 1.0
XHTML Forms Module XHTML Intrinsic Events Module
<input type="image" /> Attributes:
- All the attributes of the input tag, plus:
- align (optional)
- alt (optional) (HTML 4)
- border (optional) (HTML 4)
- name (optional)
- src
- type="image"
- usestyle (optional) (WebTV)
- value (optional)
- width (optional) (WebTV)
<input type="image" /> Usage:
- standard image field:
[blockquote shade=yes]
<form onSubmit="javascript:alert('clicked!' return false;">[br]
Click on the animal picture to submit the form[br]
<input type="image" src="/library/graphics/cecb2.gif" value="Click here"
size="32,32" border="0" />[br]
</form>
[/blockquote]
[/ul]_z_webdesign_z_);
<input type="image" /> Special Notes:
- The image submit button sends both the value of the submit button and the x and y coordinates where the button was clicked.
- The image type is used in the same fashion as a submit button, only with an image to click on.
More <input type="image" /> Information:
- Using Images and Buttons to Submit Forms
- Ways to Submit Your Forms
- How to Use the input Tag
- Input Tag Attributes
- HTML Forms Links
Return to the <input /> Element
Return to XHTML Element (HTML Tags) Library

