I've encountered an issue with my HTML code. I'm trying to load images from my local drive, and the path to the folder seems correct because I can open the images by ctrl + clicking on them. However, when I open my page using a live server or host it somewhere, the images load fine. The problem arises when I try to load the images by opening index.html directly, as no pictures are shown.
When loading from a live server:
https://i.sstatic.net/4B0Dk.png
By opening index.html:
https://i.sstatic.net/g54Xt.png
<img src="/img/special.png" alt="">
background-image: url(/img/apartments.png);
I have tried using one of these two lines of code to display the images, but they still don't load properly.