EN
HTML - disabled input
0 points
In this article, we would like to show you how to create disabled input in HTML.
Quick solution:
xxxxxxxxxx
1
<input type="text" disabled />
In this example, we use input
element's disable
attribute to disable the input
.
xxxxxxxxxx
1
2
<html>
3
<body>
4
<form>
5
<label>
6
<span>Disabled:</span>
7
<input type="text" disabled />
8
</label>
9
<br />
10
<br />
11
<label>
12
<span>Enabled:</span>
13
<input type="text" />
14
</label>
15
</form>
16
</body>
17
</html>