:focus
(selettore CSS e jQuery) riguarda gli Elementi HTML che hanno il focus, ossia pronti a ricevere l’input dall’utente.
Sintassi
:focus { /* codice */ }
Esempi
<style> input:focus { background-color: yellow; } </style> <input placeholder="clicca qui">
Contenuti correlati
- CSS
- HTML
- JavaScript
- jQuery
- PHP
- SQL
- WORDPRESS
0 Comment