How to fix HTML not linking to CSS file in Visual Studio Code

How to fix HTML not linking to CSS file in Visual Studio Code
June 9, 2020 1 Comment How To's, Tutorials siwelke

The solution I found to this problem is changin your “href” tag to this format.

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

Always provide your css path to the html file  by adding ".." to the path
eg :

href = "../folderName/filename.css"

Tags
About The Author
Leave Comment
  1. 1

    Developer

    THANK YOU! Was driving me crazy!

    Reply

Leave a reply

Your email address will not be published.