HomeMenu
Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

background-color

Description

The background-color property for CSS 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

1 · color

2 · JS