to set background color in css code example
Example 1: css set background color
body {
background-color: red;
}
Example 2: background color
//javascript type css:
document.body.style.backgroundColor = "blue";
// or inline css:
<div style="background-color: blue;"></div>