Prev Demo
CSS3
>
Read-Only Selector
Next Demo
Write code here
J
|
B
|
A
<!DOCTYPE html> <html> <head> <title>Demo</title> </head> <body> <style> input:read-only { color: red; background-color: lightblue; } </style> <form> First Name<input type="text" required="required" />* <br /> Last Name<input type="text" required="required" />* <br /> <br /> Company Name<input type="text" value="SNIT Funda Service LLP" readonly="readonly" /> </form> <br/> <br/> <p>In the above text boxes you can not change the Company Name.</p> </body> </html>
Note: We DO NOT save your trial code in our database.
Output