<!DOCTYPE html>
<html>
<head>
<title>CSS :disabled Selector</title>
<style type="text/css">
input:disabled {
background-color: yellow;
}
</style>
</head>
<body>
<input type="text" name="username" placeholder="Username" /> <br /><br />
<input type="password" name="password" placeholder="Password" disabled />
</body>
</html>