Home Menu

background-color

The background-color CSS property sets the background color of an element.

Syntax

CSS

background-color: value;

JS

object.style.backgroundColor = "value";

Values

<'background-color'> = <color>
<color>

Specifies the color using a keyword or a numerical specification.

Initial

transparent

Examples

color

JS

Internal

background

background-attachment

background-clip

background-image

background-position

background-repeat

External

World Wide Web Consortium (W3C)

JesusBible
HTMLCSSJSPHPSVGMore
AboutTerms