Hii guys I am not able to link my CSS file in html in vs code I used link tag but it not responding how I fix this issu | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 2

Hii guys I am not able to link my CSS file in html in vs code I used link tag but it not responding how I fix this issu

23rd May 2021, 9:48 AM
Jayesh Dubey
Jayesh Dubey - avatar
4 Answers
+ 1
<link href="foldername/cssfilename.css" type="text/css" rel="stylesheet"/> write the folder name in 'foldername' and css file name in 'cssfilename.css' It will work.
24th May 2021, 3:37 AM
NEZ
NEZ - avatar
+ 2
You either have a syntax error or a directory misspelling.. Can we have a look at your code?
23rd May 2021, 12:43 PM
Mounzer
+ 2
Mounzer Yea it's not required but it will work. If I type 'link' in my code editor it gives the link tag which I mentioned earlier.
24th May 2021, 4:45 AM
NEZ
NEZ - avatar
+ 1
"type" attribute is not required in html5
24th May 2021, 3:59 AM
Mounzer