Just as the color property specifies the foreground color, the background-color specifies the background color.
p { background-color: red;}The syntax is the same as for the color property.
| Property | Value | Description |
| background-color: | <color keyword> | Set color to specified value |
| background-color: | #rrrgggbbb | Set color in HTML-style hex notation |
| background-color: | rgb(rrr,ggg,bbb) | Set color using values from 0-255 for each parameter |
| background-color: | rgb(rrr%,ggg%,bbb%) | Specify color as percentages to rgb() |
| background-color: | inherit | Inherit color from parent |