hover and active in css 2022-09-28 css----------- input{ background: transparent; width: 80px; height: 45px; } input:hover{ background: black; color: white; transition: 2s; } input:active{ background: lightgreen; color:yellow; transition: 2s; } html---------- Twitter WhatsApp Telegram Facebook