Opening HTML with linked CSS code


I’m 40% way through the HTML & CSS module and am enjoying it so far, but out of curiosity I wanted to open my projects in a browser. I’ve only yet coded HTML & CSS pages in the freeCodeCamp IDE so don’t know yet how to actually open the HTML pages locally while still keeping CSS formatting.



1 Like

Check out this video on YouTube

You would need to save the HTML and CSS to files on your computer. Put them in the same directory. Make sure you name the CSS file “styles.css”. Then you can open the HTML file through your browser.

Or you could definitely view them through VSC as @Uy_Scuti said above.

1 Like

Yup thanks that did the trick. I kept my CSS file as “Registration Form.css” that’s why it wasn’t working. No need to go via VS Code.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.