background-color

Sets the background color of the element.

Example

Initial value transparent
Applies to all elements in the page.

Syntax

  
background-color: violet;
  

Values

The color of the background.

Browser support

background-color112143.51

We use cookies to improve your experience. Learn more in our Privacy policy.

×