Login
Your Email
Pasword
Home
Write
Trending
History
Liked
Earning

What are HTML Input Attributes?

There are different html form attributes.

Do you have similar website/ Product?
Show in this page just for $5 (for a month)
Create an Ad
0/60
0/180

The value Attribute
The value attribute specifies the initial value for an input field.
<form action="">
Name:<br>
<input type="text" name="name" value="Jack">
</form>

The readonly Attribute
The readonly attribute specifies that the input field is read only it cannot be changed.
<form action="">
Name:<br>
<input type="text" name="name" value="Jack" readonly>
</form>

The disabled Attribute
The disabled attribute specifies that the input field is disabled. A disabled input field is unusable and un-clickable, and its value will not be sent when submitting the form.
<form action="">
Name:<br>
<input type="text" name="name" value="Jack" disabled>
</form>

The size Attribute
The size attribute specifies the size  for the input field in characters.
<form action="">
Name:<br>
<input type="text" name="name" value="Jack" size="20">
</form>

The maxlength Attribute
The maxlength attribute specifies the maximum  length allowed for the input field.
<form action="">
Name:<br>
<input type="text" name="name" value="Jack" maxlength="20">
</form>


CONTINUE READING
Input Attributes
HTML
Ayesha
Tech writer at newsandstory