Easy Tutorial
❮ Att Input Readonly Av Event Progress ❯

HTML <input> src Attribute

HTML <input> Tag

Example

An HTML form with an image submit button:


Browser Support

All major browsers support the src attribute.


Definition and Usage

The src attribute specifies the URL of the image to be displayed as the submit button.

Note: The src attribute is required for <input type="image"> and can only be used with <input type="image">.


Differences Between HTML 4.01 and HTML5

None.


Syntax

Attribute Values

Value Description
URL Specifies the URL of the image to be used as a submit button. Possible values: absolute URL - points to another website (e.g., src="http://www.example.com/submit.gif")<br> relative URL - points to a file within the website (e.g., src="submit.gif")

❮ Att Input Readonly Av Event Progress ❯