<html>
<head>
<style>
input:read-only { /* For Firefox */
background-color: yellow;
}
input:read-only {
background-color: yellow;
}
</style>
</head>
<body>
<h3>A demonstration of the :read-only 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-only selector selects form elements with a "readonly" attribute.</p>
<p><strong>Note:</strong> Firefox supports an alternative, the :-moz-read-only property.</p>
</body>
<!-- Mirrored from www.w3schools.com/cssref/tryit.asp?filename=trycss_sel_read-only by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 05 Jun 2019 14:27:59 GMT -->
</html>