Skip to content
Related Articles

Related Articles

HTML | <input> width Attribute

Improve Article
Save Article
  • Last Updated : 12 May, 2021
Improve Article
Save Article

The HTML <input> width Attribute is used to specify the width of the <input> element. This Attribute is only used for input type=”image”


<input width="pixels"> 

Attribute Values: It contains the value i.e pixels which specify the width of the input Element. 


<!DOCTYPE html>
<body style="text-align:center;">
    <h1 style="color:green;">
    <h2>HTML Input width Attribute</h2>
    <input id="myImage"
        height="48" />



Supported Browsers: 

  • Google Chrome 1.0
  • Firefox 16.0
  • Edge
  • Opera 1.0
  • Apple Safari
My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!