change color of button on click code example Example: change button color html .button { background-color: #4CAF50; }