<!DOCTYPE html>
<html>
<head>
<style>
input:-moz-read-write { /* For Firefox */
background-color: yellow;
}
input:read-write {
background-color: yellow;
}
</style>
</head>
<body>
<h3>A demonstration of the :read-write selector.</h3>
<p>A normal input element:<br><input value="hello"></p>
<p>A readonly input element:<br><input readonly value="hello"></p>
<p>The :read-write selector selects form elements with no "readonly" attribute.</p>
<p><strong>Note:</strong> The :read-write selector is not supported in Internet Explorer.</p>
<p><strong>Note:</strong> Firefox supports an alternative, the :-moz-read-write property.</p>
</body>
</html>