Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Title of the document</title> <style> textarea:-moz-read-only { background: #ffffff; } textarea:read-only { background: #ffffff; } textarea:read-only:hover { cursor: not-allowed; background: #8ebf42; } </style> </head> <body> <h2>:read-only selector example</h2> <textarea cols="40" rows="5" readonly>Here is an example of :read-only selector on hover.</textarea> </body> </html>