Web Tools Table Maker3schools TranslateImage CompressorFavicon Icon GeneratorCrop & Resize Image
Apu
Apu December 09, 2022 › #Button #color

Change the background color of a button with CSS

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>
save
listen
AI Answer
Write Your Answer
loading
back
View All