css change background color of body code example
Example 1: how to make a background color in html
<body style="background-color: #fff">
<!---this will change the body color---!>
</body>
Example 2: how to change the page background in css
body {
/* this changes the page's background to green */
background-color: green;
}
Example 3: background color
//javascript type css:
document.body.style.backgroundColor = "blue";
// or inline css:
<div style="background-color: blue;"></div>