CSS background-color Property
In CSS, the background-color property is used to specify the color of an element's background.
Syntax
Property Values
| Value | Description | 
|---|---|
| Color | Sets the color of the backdrop. For a comprehensive list of color values, see CSS Color Values. | 
| transparent | The backdrop color should be translucent, as specified. This is the default setting. | 
| initial | Set this property's value to the default. | 
| inherit | This attribute is inherited from its parent element. | 
Supported Browsers
| Element | Chrome | Firefox | Safari | Edge / IE | Opera | 
|---|---|---|---|---|---|
| background-color | 1.0 | 1.0 | 1.0 | 4.0 | 3.5 |