<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
</head>
<body>
<div class="background-image"></div>
</body>
<style>
* {
margin: 0;
padding: 0;
}
.background-image {
background-image: url('./C:\Users\viraj\Downloads\html\Mountains.jfif');
background-size: cover;
background-position: center;
background-repeat: no-repeat;
height: 100vh;
}
</style>
</html>
Whenever I run this code on my browser(Chrome) my background image won't show up. I don't know how to fix it so if anyone knows how to fix it, please tell me.