Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Заголовок документа</title> <style> input{ border:1px solid #cccccc; padding:5px 10px; } input:valid { background-color: #eeeeee; } </style> </head> <body> <h2>Пример селектора :valid</h2> <form> <input type="email" value="w3docs@example.com"> </form> </body> </html>