Answers for "how to change div background color on click"

CSS
14

css onclick change color

<style>
.dabutton:focus {
    background-color:yellow;
}
</style>
<button class="dabutton"></button> // <-- usage
Posted by: Guest on July-03-2020
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 to change div background color on click"

Browse Popular Code Answers by Language