css background colour code example

Example 1: css background color

body {
  background-color: green;
}

Example 2: background color css

html,body {
  background-color: red;
}

Example 3: css transparent background color

div {
 opacity:25% ; 
}

Example 4: css set background color

body {
	background-color: red; 
}

Example 5: how to change background color in css

body{
  background: lightblue;
}

Example 6: background color

//javascript type css:
document.body.style.backgroundColor = "blue";
// or inline css:
<div style="background-color: blue;"></div>