Code doesn't run on vscode

https://codepen.io/Ned-Michael/pen/eYbKONr Hello, the code works perfectly on Codepen, anytime I try to run it on vs studio my CSS file doesn't show up on the web page, meanwhile, I've linked successfully on my HTML file.
1 Reply
Jochem
Jochem•15mo ago
did you remove the <link> tag to paste it to codepen? you need to link the CSS to the HTML using a tag like this inside <head>:
<link rel="stylesheet" type="text/css" href="styles.css" />
<link rel="stylesheet" type="text/css" href="styles.css" />
where styles.css would be the path to your stylesheet. This tag links to a file called styles.css in the same folder as your .html file. If it lives in a different place or is called something different, you'll have to edit that value
Want results from more Discord servers?
Add your server