HTML Input Attributes

in #attribute6 years ago

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>

Sort:  

This post has received a 0.70 % upvote from @drotto thanks to: @rabiul21.

Coin Marketplace

STEEM 0.17
TRX 0.13
JST 0.028
BTC 57178.77
ETH 3095.71
USDT 1.00
SBD 2.12