I am facing an issue while trying to change the background image on my second HTML page using CSS. The problem is that the background image is being applied through the same CSS file, so any changes I make affect both pages. How can I ensure that the background only changes on the second page?
What steps should I take, either in the CSS or within the code of the second HTML page, to isolate the background change to just the second page?
header {
background-image: url(../wa.jpg);
height: 100vh;
background-size: cover;
background-position: center;
}
<header>
<div class="main">
<div class="logo">
<img src="../logo.png">
</div>
<ul>
<li class=""><a href="smth.html">Home</a></li>
<li><a href="">Contact me</a></li>
<li><a href="#">Assignments</a></li>
<li><a href="#">Info</a></li>
</ul>