Why is'nt the image appearing on my webpage? Can anyone explain me how it works and its solution please?
HTML:
<div class="bg-image"></div>
CSS:
.bg-image {
background-image:url("photo1.jpeg");
width: 400px;
height: 600px;
background-size: cover;
background-repeat: no-repeat;
}