VS Code live server

Hi, I am an absolute beginner in HTML CSS. recently tried to create a website and I am having problems loading images.

I use VS Code as text editor. After coding, when i open the live server from VS Code, everything runs fine and the images load perfectly. But when i try to open the actual index.html file the images do not load. What’s going on?? Please help.

What do your image paths look like? Root relative path will not work without serving the page.

This ./ should work when just opening it in the browser, / will not.

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