Need help linking to an external styles sheet

I’m currently working on this project:

However, when I try to link to my style sheet it won’t work. I previously had it in another folder and have since moved it to the same folder as my HTML document and it still isn’t working.

<link href="./styles/style.css" type="text/css" rel="stylesheet">

Above is what my tag looks like. I’ve tried adding “./” in front of style.css but it still doesn’t work.

This is what my folders look like, with style.css being in the styles folder

Is my path incorrect? I’ve previously linked to a style sheet in a different project so I’m not sure what I’m doing wrong here.

Thanks in advanced.

Honestly, I was using Atom and decided to switch to Visual Studio code. I used ctrl+click to see if I was linking to my style page correctly, and I was. I was still at a loss. However, Visual Studio Code told me I was missing semicolons after my CSS styling and now it works. :woman_shrugging:

1 Like