background colors code example
Example 1: css background color
body {
background-color: green;
}
Example 2: background color css
html,body {
background-color: red;
}
Example 3: html change background color of page
<body bgcolor="some color">
HTML goes here
</body>
Example 4: css transparent background color
div {
opacity:25% ;
}
Example 5: background color using css
html,body {
background-color: blue;
}
Example 6: background color
document.body.style.backgroundColor = "blue";
<div style="background-color: blue;"></div>