bgcolor html code example
Example 1: how to add bgcolor in html
<body bgcolor="teal">
Example 2: background color css rgb
body {
background-color: rgb(255,255,255);
}
Example 3: css transparent background color
div {
opacity:25% ;
}
Example 4: background color
//javascript type css:
document.body.style.backgroundColor = "blue";
// or inline css:
<div style="background-color: blue;"></div>