Specifies the color to use for the background of the object.
With the background-color property you can set the background color of an element and you can also set the element's background to transparent.
One of the following values:
|Color of the background. For the supported color values, see the colors page.|
|Takes the value of this property from the computed style of the parent element.|
|Default. Underlying content will shine through.|
Example HTML code 1:
This example illustrates the use of the background-color property:
Did you find this example helpful?
Supported by tags:
User Contributed Comments