width attribute

<input width='value'>


Width Attribute allows the user to mention the "Width" of an image given in <input>.

Example Code:

Result :

  • Width attributes are used only with the input type "Image".
  • If the width is not mentioned, then the browser takes the original width of an image.


It will function in all browsers, except Internet Explorer.

Ask Questions

Ask Question