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 2 Comments 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
  2. 1

    Anonymous

    not link and not working

    Reply

Leave a reply

Your email address will not be published. Required fields are marked *