+ 1

Can anyone help me?

I can not link CSS with Html in Visual Studio Code

26th Aug 2020, 9:29 PM
Vilson Hoxha
Vilson Hoxha - avatar
11 Réponses
+ 1
Do you mean something like this? https://www.youtube.com/watch?v=ZPz74UY3goo
26th Aug 2020, 9:35 PM
Steven M
Steven M - avatar
+ 1
Thanks man now is working.
26th Aug 2020, 10:39 PM
Vilson Hoxha
Vilson Hoxha - avatar
+ 1
Thanks for the help man now is working.
26th Aug 2020, 10:46 PM
Vilson Hoxha
Vilson Hoxha - avatar
+ 1
Please use appropriate tag next time: https://www.sololearn.com/discuss/1316935/?ref=app
27th Aug 2020, 9:19 AM
The future is now thanks to science
The future is now thanks to science - avatar
0
I already have seen this video and lots of other videos but still I can not link.
26th Aug 2020, 9:37 PM
Vilson Hoxha
Vilson Hoxha - avatar
0
So you need to have 2 different files, 1 for html and 1 for css. Inside the html file you need to link to the other like this: <link rel='stylesheet' type='text/css' href="PATH-TO-YOUR-CSS">
26th Aug 2020, 9:40 PM
Steven M
Steven M - avatar
0
Still does not work.
26th Aug 2020, 9:43 PM
Vilson Hoxha
Vilson Hoxha - avatar
0
That is weird, are you using quotes around your path? I can't really say why it's not working without seeing the code. You can also right-click and inspect web pages to see how they are doing it as well to get a better example. https://www.w3schools.com/tags/tag_link.asp
26th Aug 2020, 10:09 PM
Steven M
Steven M - avatar
0
I just tested it on my desktop in Visual Studio and this worked... <!-- HTML FILE --> <!DOCTYPE html> <head> <meta charset="utf-8"/> <title></title> <link rel='stylesheet' type='text/css' href="PATH-TO-CSS.css"> <h1>TEST</h1> </head> /* CSS FILE */ h1 { color: blue; }
26th Aug 2020, 10:13 PM
Steven M
Steven M - avatar
0
Yes I am using quotes.I don't no why doesn't work, maybe I will reinstall the app.
26th Aug 2020, 10:13 PM
Vilson Hoxha
Vilson Hoxha - avatar
0
Cool good deal 👍 👍
26th Aug 2020, 10:49 PM
Steven M
Steven M - avatar