css add background color to class code example
Example 1: background color css
html,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>