css background image with color code example

Example 1: add background image and color css

background:linear-gradient( rgba(0, 0, 0, 0.5) 100%, rgba(0, 0, 0, 0.5)100%),url("logo/header-background.png");

Example 2: html background image

<!-- Code by Scratchy -->
<!-- Twitter: @S_cratchy-->

<head>
  <style>
    body {
      background-image: url(https://wallup.net/wp-content/uploads/2019/09/110394-cats-grey-kittens-fluffy-fat-grass-animals-cat-kitten-baby-cute-748x468.jpg) 
    }
  </style>
  
  <body>
    You have set the background image!
    
    
    
  </body>

Example 3: background image css

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

Example 4: how to add background image as well as background colorin html

background: url('images/checked.png'), #6DB3F2;

Example 5: background image css

html,body {
  background-image: url("your.picture");
}