background-color
Definition
The background-color property specifies the background color of an element. The screen shot below shows an element with the background color set to red.

Background color is applied to the element's content and padding areas. The margin area is transparent. The illustration below shows the CSS box model with a background color applied.

Example
h1 {background-color: red;color: black;}
Characteristics
Possible values
- color
- Color name or value.
transparent- This keyword is used to indicate that no background color should be used for the given element, in order to allow underlying colors to shine through.
inherit- Use the same computed value as the parent element for this property.
Default value
transparent
Applies to
Inherited
No
See also