Answers for "how do i change the background color of my clicking button?"

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
3

html background color change by clicking

<html>
     <head>
       <title>this is coding</title>
       <center>
       <h1 align="center"><span style="background-color:#00FF00">this is a nice piece of art
Posted by: Guest on January-12-2022

Code answers related to "how do i change the background color of my clicking button?"

Browse Popular Code Answers by Language