You are here: Reference > HTML > tags > input:image

input:image element

Browser support:
Creates an image control.
Same as the img tag. The image control allows the insertion of .jpg, .png, .bmp and .gif image files into the HTML document. If you want to create one or more clickable regions within an image, use the map element.
If you want to see the HTML tags by categories, please visit this page.
This element cannot have a closing tag.
JavaScript page for this element: input:image.

Possible members:

Attributes
Events
Styles
Pseudos
accessKey
Sets an access key to an element.
align
Sets the object's position with respect to the surrounding text.
alt
Sets an alternate text that is displayed when the file associated with the element cannot be displayed.
border
Sets the thickness of the border.
class
Sets the style class or classes that belong to the element.
contentEditable
3
Sets whether the contents of the object are editable.
dir
Sets the text direction as related to the lang attribute.
DISABLED
Sets the state of an object for user interaction.
dynsrc
Sets the location of a movie file or VRML.
galleryImg
7
Sets whether the My Pictures toolbar in Internet Explorer is enabled for the current img.
height
Specifies the height of an element.
HIDEFOCUS
Specifies whether a dotted rectangle (focus rectangle) is drawn around an object while it has focus.
hSpace
Specifies the number of pixels to use as a margin at the left and right sides of the object.
id
Sets a unique identifier for the object.
lang
Specifies the language of the element.
language
Sets the scripting language for the current element. Use it only for the script element.
loop
Specifies the number of repeats for a sound or video clip.
lowsrc
Specifies the location of a lower resolution image to display.
name
Sets the name of an element.
size
Specifies the width of a control, in characters.
src
Sets the location of an associated file for an object.
start
Specifies the starting time of a video clip.
style
Sets an inline style associated with an element.
tabIndex
Specifies the tabbing order for keyboard navigation using the TAB key.
title
Specifies a tooltip for an element.
type
Sets the type of the input element.
unSelectable
Sets whether the selection process can start in an element's content.
useMap
Sets the URL to use as an image map.
vSpace
Specifies the number of pixels to use as a margin at the top and bottom sides of an object.
width
Specifies the default width of the element.

Example HTML code 1:

This example illustrates the use of the image element:
<input type="image" src="picture.gif" alt="picture" />
Did you find this example helpful? yes no

Related pages:

External links:

User Contributed Comments

Post Content

Post Content