To change the background color of a button , you should use the CSS background-color property.
Click on the Try it Yourself » button to open the below code in our online editor.
<style>
button {
background-color:green;
}
</style>
<button> Click Me</button>
Comments (0)