Sublime Text
<!DOCTYPE html> <html> <head> <style type="text/css"> input[type="text"]:read-only{ background-color: yellow; } p:read-only{ background-color: green; } </style> </head> <body> <input type="text"> <br><br> <input type="text" readonly> <p>Hướng dẫn học lập trình web</p> </body> </html>
<!DOCTYPE html> <html> <head> <style type="text/css"> input[type="text"]:read-only{ background-color: yellow; } p:read-only{ background-color: green; } </style> </head> <body> <input type="text"> <br><br> <input type="text" readonly> <p>Hướng dẫn học lập trình web</p> </body> </html>