background image for css html code code example
Example 1: css background image
background-image: url("image.png");
background-position: center;
background-repeat: no-repeat;
background-size: cover;
Example 2: how to change background image in html
<style>
div {
background-image: url('img_girl.jpg');
}
</style>
Example 3: how to set div background image
body {
background-image: url("paper.gif");
background-color: #cccccc;
}