When I try to open my html file directly by clicking on it, it's not loading the CSS file or images but when I open it with VS code live server it working fine. The images and stylesheet is on different files
here is the code :
<link rel="stylesheet" href="/CSS files/stylesheet.css" type="text/css"> <meta charset="UTF-8">
hrefattribute it will show what file location it is pointing to. I think in your case it might be pointing to the wrong location.