This page is Not Ready

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.



The image type of the <input> element represents an image. The user can either use the image as a button to submit the form, or select a coordinate of the image to be submitted with the form data.

Overview Table

DOM Interface



The x-coordinate is submitted under the name of the control with .x appended, and the y-coordinate is submitted under the name of the control with .y appended. Any value property is ignored. The src property specifies the img element. The following image and video file formats are supported:

  • .avi—Audio-Visual Interleaved (AVI)
  • .bmp—Windows Bitmap (BMP)
  • .emf—Windows Enhanced Metafile (EMF)
  • .png—Graphics Interchange Format (GIF)
  • .png, .jpeg—Joint Photographic Experts Group (JPEG)
  • .mov—Apple QuickTime Movie (MOV)
  • .mpg, .mpeg—Motion Picture Experts Group (MPEG)
  • .png—Portable Network Graphics (PNG)
  • .wmf—Windows Metafile (WMF)
  • .xbm—X Bitmap (XBM)

In IE8 Standards mode or later, the title attribute is preferred over the alt attribute when specified as a pop-up tooltip. In addition, the value of the src attribute depends on the current document compatibility mode.

Standards information

HTML information


See also

Related pages

  • Reference
  • img
  • input