Prev Demo
CSS3
>
Invalid
Next Demo
Write code here
J
|
B
|
A
<!DOCTYPE html> <html> <head> <title>Demo</title> </head> <body> <style> input:invalid { background-color: lightblue; } p { color: red; } </style> Enter Your Mail ID <input type="email" placeholder="example@example.com" /> <br /> <p>Please Enter valid Mail ID</p> <h3>This is the example for the invalid selector. It will not work in the IE9.</h3> </body> </html>
Note: We DO NOT save your trial code in our database.
Output