CSS :read-write Selector Last Updated : 29 Aug, 2024 Comments Improve Suggest changes Like Article Like Report The :read-write selector is used to select an element (such as an input text) that is editable by the user. The elements with no readonly and disabled attribute are defined as readable and writable. Syntax::read-write { // CSS Property}Example 1: HTML <!DOCTYPE html> <html> <head> <title>:read-write Selector</title> <style> input { min-width: 25em; padding: 10px; } /* CSS property for Firefox only */ input:-moz-read-write { background: green; color: white; } input:read-write { background: green; color: white; } </style> </head> <body style="text-align:center"> <h2> :read-write Selector </h2> <input type="text" value="Editable input field"> <br><br> <input type="text" value="This is a read-only input field." readonly> </body> </html> Output: Example 2: HTML <!DOCTYPE html> <html> <head> <title>:read-write Selector</title> <style> p:-moz-read-write { background: green; } p:read-write { background: green; } p[contenteditable="true"] { color: white; } </style> </head> <body style="text-align:center"> <h2> :read-write Selector </h2> <p> This is a normal paragraph </p> <p contenteditable="true"> This is editable paragraph! </p> </body> </html> Output:Supported Browsers: The browser supported by :read-write Selector are listed below:Apple Safari 4.0Google Chrome 1.0Edge 13.0Firefox 78.0Opera 9.0 Create Quiz Comment V Vishal Chaudhary 2 Follow 0 Improve V Vishal Chaudhary 2 Follow 0 Improve Article Tags : Web Technologies CSS CSS-Selectors Explore CSS Introduction 3 min read CSS Syntax 3 min read CSS Selectors 6 min read CSS Comments 2 min read CSS Colors 5 min read CSS Borders 5 min read CSS Margins 4 min read CSS Height and Width 4 min read CSS Outline 4 min read CSS Fonts 4 min read Like