HTML Dog

Skip to navigation

CSS Property: background-color

The background color of a box.

Possible Values

ValueExample
[color]rgb(0,0,0)
inherit
initial
unset

Example


#dooberry { background-color: red; }
/* The background of the box of an element with the ID "dooberry" is painted red. */