HTML Editor
Run
<!DOCTYPE html> <html lang="en-US"> <head> <style> input:focus{ background-color: yellow; } </style> </head> <body> <h1>CSS :focus Selector</h1> <input type="text"> <p><strong>Note</strong>: Try to focus on the input.</p> </body> </html>
OUTPUT
×
Save as
Private
Tag
AJAX
Canvas
CSS
Google Charts
HTML
Javascript
jQuery
JSON
SASS
SVG
Description
Save