How can I link a CSS file to an HTML file in the webversion of Visual Studio Code?

Now it likes like this:

Dasmoto's Arts and Crafts

Thank you so much in advance!

Yo! Linking a CSS file to your HTML in VS Code is super easy. Just make sure you add this line inside the <head> tag of your HTML file:

<link rel="stylesheet" href="style.css">
  • rel="stylesheet" tells the browser it’s a CSS file.
  • href="style.css" is the path to your CSS file. If your CSS file is named something else or in a different folder, just update the path accordingly (e.g. href="css/styles.css").

Once that’s done, save both files, and you should be good to go. Let me know if it works!

Hi, Thank you so much for responding!

That’s exactly what I did… unfortunately it doesn’t work. Might be because I’m using the webversion due to having a Chromebook. Any further ideas how this might come?

Thank you so much,

Lisa

Verzonden vanaf Outlook voor Android