Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Title of the document</title> <style> input { border: 1px solid #cccccc; padding: 5px 10px; } input:valid { background-color: #eeeeee; } </style> </head> <body> <h2>:valid selector example</h2> <form> <input type="email" value="w3docs@example.com"> </form> </body> </html>