'CSS file not working unless I move the whole folder/project to Desktop

I have a basic webpage/JavaScript example and the CSS doesn't apply to the project unless I move the entire project from (approx 5 subfolders in my Downloads Folder) to the Desktop (No sub folders).

The CSS magically works when I move it to a new location and I didn't change a single line of code in the 2 versions, they are identical. What could be causing this?

Note: Someone did suggest it may have had something to do with VSCode and how I opened the non-working version there first instead of using another editor but that seems far fetched to me.

Original Location enter image description here

Now on Desktop enter image description here

Version where CSS doesn't work - File structure enter image description here

Here is where I declare the script tag Here is where I declare the script tag

This version that I copied and put on the desktop works fine somehow enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source