HTML <input> Tag with the 'width' Attribute

<form name="myForm" action="">

<input type="image" src="" alt="Australia & NZ Map" name="myImageField" height="142" width="200">


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.