I made a website for our project in HTML and the HTML links are working fine in VSCode. However, when I open the HTML file for the main page in the folder itself (not from the live preview from VSCode), the links stop working and show this error:
This is a snippet of the codes that I'm using:
<header id="top">
<video autoplay loop muted plays-inline class="back-video">
<source src="bg vid 2.mp4" type="video/mp4">
</video>
<div style="padding: 10%;">
<div style="text-align: center;">
<img class="logo" src="Logo Transparent.png"/>
</div>
<h1 class="title">Chingu K-Pop Merch</h1>
<nav style="text-align: center;">
<a class="button" href="index.html"><i class="fa-solid fa-house"></i> Main Page</a>
<div class="products-dropdown">
<button class="button" type="button"><i class="fa-solid fa-box"></i> Products</button>
<div class ="products-content">
<a href="All Products.html">All Products</a>
<a href="/Boy Groups/Kpop_Boy_Group.html">All Boy Groups</a>
<a href="/Girl Groups/Kpop_Girl_Group.html">All Girl Groups</a>
<a href="/Soloists/SOLOISTS.html">All Solo Artists</a>
<div style="height: 20px; background-color: white; color: #B6E5D8;">~~~~~~~~~~~~~~</div>
<a href="/Boy Groups/svt/Seventeen_Kpop_Boy_Group.html">SEVENTEEN</a>
<a href="/Boy Groups/bts/BTS_Kpop_Boy_Group.html">BTS</a>
<a href="/Boy Groups/exo/exo.html">EXO</a>
<div style="height: 20px; background-color: white;color: #B6E5D8;">~~~~~~~~~~~~~~</div>
<a href="/Girl Groups/ITZY and BP/ITZY.html">ITZY</a>
<a href="/Girl Groups/ITZY and BP/BLACKPINK.html">BLACKPINK</a>
<a href="/Girl Groups/twice/twice.html">TWICE</a>
<div style="height: 20px; background-color: white;color: #B6E5D8;">~~~~~~~~~~~~~~</div>
<a href="/Soloists/IU.html">IU</a>
<a href="/Soloists/CHUNGHA.html">CHUNGHA</a>
</div>
</div>
<a class="button" href="/About The Developers Page HTML/Developers_AboutUs.html"><i class="fa-solid fa-address-card"></i> About Us</a>
<a class="button" href="/Contact Us Page HTML/Contact_Us.html"><i class="fa-solid fa-phone"></i> Contact Us</a>
</nav>
</div>
</header>