Check out example codes for "css background color". It will help you in understanding the concepts better.

Code Example 1

body {
  background-color: green;
}

Code Example 2

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

Code Example 3

body{
  background: lightblue;
}

Code Example 4

body {
  background-color: lightblue;
}

Code Example 5

div {
 opacity:25% ; 
}

Code Example 6

body {background-color: coral;}

Learn ReactJs, React Native from akashmittal.com