Answers for "why in click+hold button showing different color in html"

CSS
2

css button click color

button{
  background-color:yellow;
}

button:hover{
  background-color:orange;
}

button:focus{
  background-color:red;
}
Posted by: Guest on June-11-2021
0

change the button color on click

button:active{
  background-color:green;
}
Posted by: Guest on August-16-2021

Code answers related to "why in click+hold button showing different color in html"

Browse Popular Code Answers by Language