HTML <input> Tag with the 'width' 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" height="142" width="200">
</form>
The above example demonstrates usage of the <input>
element with the width
attribute.
The width
attribute is used on input controls that use an image button (i.e. type="image"
).
The width
is used to specify the horizontal dimension of the button. It is typically used with the height
attribute which specifies the vertical dimension.