Allows you to set the color of the background.

Value Description
color Hexadecimal - a pound sign (#) followed by at most 6 hex values(0-F).
RGB - individual values for Red, Green, and Blue.
color term - sets the color using names. i.e. red, orange, white, etc.
none Tells the browser to not use any kind of "styling" for this attribute.


h4 { background-color: white; }

p { background-color: #1078E1; }

ul { background-color: rgb( 149, 206, 145); }


This is the header 4

Here is a paragraph with a background color

  • Here is a list
  • with a background color.