Answers for "when i click on button background color change"

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 "when i click on button background color change"

Browse Popular Code Answers by Language