full page background image in html
snippet in html

how to cover full image in css

user6699

body {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

html background image fit to screen

user1908

body {
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

body background image in html

user7388

body {
  background-image: url('img_girl.jpg');
}

full page background image in html

user1949

html { 
  background: url(images/bg.jpg) no-repeat center center fixed; 
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}