Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Заголовок документа</title> <style> input:focus { background-color: #ccc; } </style> </head> <body> <h2>Пример селектора :focus</h2> <form> Name: <input type="text" name="name"> Surname: <input type="text" name="surname"> </form> </body> </html>