<html>
<head>
<style>
input[type=text]:enabled {
background: #ffff00;
}
input[type=text]:disabled {
background: #dddddd;
}
</style>
</head>
<body>
<form action="#">
First name: <input type="text" value="Mickey"><br>
Last name: <input type="text" value="Mouse"><br>
Country: <input type="text" disabled="disabled" value="Disneyland">
</form>
</body>
<!-- Mirrored from www.w3schools.com/cssref/tryit.asp?filename=trycss3_enabled_disabled by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 03:11:40 GMT -->
</html>