Editor
Download
Open
Auto Run
<!DOCTYPE html> <html> <head> <title>CSS :focus Selector</title> <style type="text/css"> input:focus { background-color: yellow; } </style> </head> <body> <input type="text" name="username" placeholder="Username" /> </body> </html>
Preview