Md Robiul Islam avatar

HTML Input Attributes

rabiul21

Published: 02 Jun 2018 › Updated: 02 Jun 2018HTML Input Attributes

HTML Input Attributes

images (7).jpeg

source

HTML Input Attributes

The value Attribute

The value attribute specifies the initial value for an input field:

Example

form action=""
First name:

input type="text"name="firstname"value="John"

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:

Example

form action=""
First name:

input type="text"name="firstname"value="John" disabled

The readonly Attribute

The readonly attribute specifies that the input field is read only (cannot be changed):

Example

form action=""
First name:

<input type="text"name="firstname"value="John" readonly>

Leave HTML Input Attributes to:

Written by

I am a Web design and Developer

Read more #attribute posts


Best Posts From Md Robiul Islam

We have not curated any of rabiul21's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.

More Posts From Md Robiul Islam