I started learning VS Code through Udemy and I already have one problem that I can't find answer anywhere. In the project I have index.html, style.css and script.js. Now when I try to save the html, the page reloads and everything from the html is applied, the same with javascript, but when I try to save the CSS, the page reloads but everything from the CSS is not applied to the page. Does anyone have a solution, I've been struggling with this problem for too long.
Thanks in advance!
CodePudding user response:
First try to add internal CSS then it works check that you correctly linked your style.css and js to index.html.if you provide a screen shot of your vs code i think it's better and easy to give a solution because when linking to html you need to mention correctly file paths.
CodePudding user response:
Are you sure that style.css is linked to your index.html?
CodePudding user response:
Make sure that your style.css is linked correctly to your html page. Then clear the cache of your browser when you reload. On chrome => ctrl f5