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
320x480B
300x250 B

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 :

728x90B

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

320x480A
360x300 A
B
728x90A
320x50A
A
Tags
About The Author
Leave Comment
  1. 1

    Q

    This website does not help at all. It does not link it.

    Reply

Leave a reply

Your email address will not be published.