1. Home
  2. Computing & Technology
  3. Web Design / HTML

<input type="image" />

By Jennifer Kyrnin, About.com Guide

<input type="image" /> Description:

The <input type="image" /> tag creates submit buttons using images.

<input type="image" /> Web Browser Support:
<input type="image" /> Attributes:
<input type="image" /> Usage:
  • standard image field:
    <form onSubmit="javascript:alert('clicked!'); return false;">
    Click on the animal picture to submit the form
    <input type="image" src="/library/graphics/cecb2.gif" value="Click here" size="32,32" border="0" />
    </form>
<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:

Return to the <input /> Element
Return to XHTML Element (HTML Tags) Library

Explore Web Design / HTML
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. Web Design / HTML

©2009 About.com, a part of The New York Times Company.

All rights reserved.