+ 1
Can anyone help me?
I can not link CSS with Html in Visual Studio Code
11 Respostas
+ 1
Do you mean something like this?
https://www.youtube.com/watch?v=ZPz74UY3goo
+ 1
Thanks man now is working.
+ 1
Thanks for the help man now is working.
+ 1
Please use appropriate tag next time:
https://www.sololearn.com/discuss/1316935/?ref=app
0
I already have seen this video and lots of other videos but still I can not link.
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">
0
Still does not work.
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
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;
}
0
Yes I am using quotes.I don't no why doesn't work, maybe I will reinstall the app.
0
Cool good deal 👍 👍