I am a total beginner and am trying to create a website and store the CSS stylesheet in a different folder that the HTML files, but in the same directory.
I put this in the header tag of my HTML:
<link rel="stylesheet" type="text/css" media="screen" href="./style/stylesheet.css" />
but it doesn't work.
The file is in the folder "style" in the same directory as my HTML.
It works, when I have the CSS file and the HTML file in the same folder and link to it in the same way with href="stylesheet.css"
I have looked for other fixes, checked for typos, but it seems to be linked correctly already? I have also tried around different ways to type the path, but nothing works.
This is the way the folders are structured:
