Answers for "how to change button color when clicked"

CSS
2

how change button color in html

<!DOCTYPE html>
<html>
 <body>
  <button style="background-color:red; border-color:blue; color:white">Button 
  Text</button>
 </body>
</html>
Posted by: Guest on October-21-2021
1

change button color html

.button {
  background-color: #4CAF50;
}
Posted by: Guest on May-07-2021
0

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
1

html change button color

.button {
	background-color: #A62773; /*Color Code*/
}
Posted by: Guest on May-22-2021

Code answers related to "how to change button color when clicked"

Browse Popular Code Answers by Language