CSS background-color property

Usage

Sets the color of the element background.

Values

  • [color] - specifies a color; can be a color name, RGB code or Hex code
  • transparent - default, the element background is transparent

Example

Code:

p {
  background-color: red;
}