background color in style code example
Example 1: css background color
body {
background-color: green;
}
Example 2: add a background color for all h1 elements in css
all. h1 {background-color:#FFFFFF;}
Example 3: css set background color
body {
background-color: red;
}