Change the background color of a button with CSS

To change the background color of a button, use the background-color property.

You can try to run the following code to change button?s background color

Example

Live Demo


   
      
   
   
      

Result

     

Click below for result:

         
Updated on: 2020-06-24T08:07:39+05:30

2K+ Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements