<html>
<head>
<style>
input:disabled{
background-color:gray;
}
</style>
</head>
<body>
<input type="text" name="fname" disabled>
</body>
</html>
<html>
<head>
<style>
input:disabled{
background-color:gray;
}
</style>
</head>
<body>
<input type="text" name="fname" disabled>
</body>
</html>