HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
HTML <input> tag : An HTML form with two input fields with a width of 50 and 4 characters
The size
attribute specifies the visible width, in characters,
of an <input>
element.
size
attribute works with the following input types:
text, search, tel, url, email, and password.
<input>
element,
use the maxlength
attribute.
The numbers in the table specify the first browser version that fully supports the attribute.
Attribute | |||||
---|---|---|---|---|---|
size | Yes | Yes | Yes | Yes | Yes |
Value | Description |
---|---|
number | Specifies the width of an <input> element, in characters. Default value is 20 |
❮ HTML <input> tag