0

How can i link my html file to a css file in vss

I am trying to make changes in my html file through css but i don't know how ro link the two files in vss.

10th May 2023, 8:09 AM
Sammy Mdachi
Sammy Mdachi - avatar
2 odpowiedzi
+ 4
Use link tag <link rel="stylesheet" type="text/css" href="style.css"> href has the name of your css file. Hope that this helps you. Update: in sololearn you don’t have to link the two files, all works without linking them.
10th May 2023, 8:14 AM
Ugulberto Sánchez
Ugulberto Sánchez - avatar
0
To link your HTML file with the CSS file, you have add the following code in your HTML file, in the head area: <link rel="stylesheet" href="style.css> Here rel means relationship, where you tell your html file what relationship does the item inside the href attribite have, with the HTML file. The href links the something, in HTML, in this case the href links your style document. This can be really useful when you have specified a different name for your style document, such as test.css, where, you can the name of the style sheet, to link the HTML and CSS together. If you are using an online editor, such as programiz compiler or Sololearn compiler, you don`t need to use this attrribute, as they link it automatically. If you want to still try, you can use the default value fcor this, which is: <link rel="stylesheet" href="style.css>
10th May 2023, 10:07 AM
Danish Zubair
Danish Zubair - avatar