CSS Background-Color Property
CSS 1 |
CSS 2 |
CSS 3 |
|
|
|
|
Description
Sets the background color for the element. Extends to, but not including, the margins.
Syntax
background-color: [value] ;
Possible values
- color
- transparent
- inherit
Initial Value
Transparent
Applies To
All elements
Inherited
No
Media
Visual
Example
H1 {background-color: #9C9A9C;}