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

Code Example 1

<style>
body {
  background-image: url('img_girl.jpg');
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
}
</style>

Code Example 2

body {

 background-image: url("paper.gif");

 background-color: #cccccc;

}

Code Example 3

body {
 background-image: url("paper.gif");
 background-color: #cccccc;
}

Code Example 4

.selector {
  background-image: url(image.png);
}

Code Example 5

background-image: url("image.gif");

Code Example 6

background-image: url('./image.jpg');

Learn ReactJs, React Native from akashmittal.com