src attribute of the input tag (XHTML 1.0)
for input fields with imagesThe src attribute of the input tag is used only for specifying the image to use for the image button control. Creating an image button is done by using the input tag and setting the type to "image". With the src attribute, you decide which image to be displayed. For instance, this button uses the Google logo:
The source looks like this:
<input type="image" name="imagebutton" src="http://www.google.com/intl/da/logos/Logo_25wht.gif" />
Possible values
| Value |
|---|
| <url> |
src exists in these tags
| Attribute | Deprecated | Description |
|---|---|---|
| applet | Java applet | |
| frame | subwindow | |
| iframe | inline subwindow | |
| img | Embedded image | |
| input | form control | |
| script | script statements |
© htmlpedia.net 2008 - 2012