x
1
2
<html>
3
<head>
4
<meta charset="utf-8">
5
<style>
6
input:enabled {
7
background: #ffff00;
8
}
9
10
input:disabled {
11
background: #dddddd;
12
}
13
</style>
14
</head>
15
<body>
16
17
<form action="">
18
First name: <input type="text" value="Mickey" /><br> Last name: <input type="text" value="Mouse" /><br> Country: <input type="text" disabled="disabled" value="Disneyland" /><br> Password: <input type="password" name="password" />
19
<input type="radio" value="male" name="gender" /> Male<br>
20
<input type="radio" value="female" name="gender" /> Female<br>
21
<input type="checkbox" value="Bike" /> I have a bike<br>
22
<input type="checkbox" value="Car" /> I have a car
23
</form>
24
</body>
25
</html>