HTML <input> Tag with the 'src' Attribute
<form name="myForm" action="http://www.htmlcodes.ws/resources/html-forms-action.cfm">
<input type="image" src="http://www.htmlcodes.ws/images/examples/australia-nz-map.gif" alt="Australia & NZ Map" name="myImageField">
</form>
The above example demonstrates usage of the <input>
element with the src
attribute.
The src
attribute is used with image buttons to provide the URL of the image. The attribute is optional, but if present, its value must be a valid URL.