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
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>
:
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