you can also try ./Images/ , as in adding ./ in front of the relative path
So going off of paulo’s reply you would want to name the PATH
G:|HUTCHINS_CLAN_PROJECT or G:\HUTCHINS-CLAN-PROJECT
Okay so @ahraitch I opened an image file from a folder I made this would be the URL i got from it
file:///C:/Users/User/Downloads/New%20folder/images/OIP%20(1).jpg
Any space you have in the file you must put %20 as the space. I’m not sure if this is true but it might work, as i don’t work with the G:\ directory type.
VS Code should auto complete the path for you.
Remove the path and start typing the folder name, VS Code should give you Tab completion options, select the folder and press Tab, now it should show an auto complete for all the images in that folder, select the image and press Tab. If you Ctrl + click the path in the HTML, it should open the image in a new tab in the editor as well. If all that works, you know you have the correct path.
How are you running the HTML?
This is a piece of code from my HTML folder.
<img src="images/who-img.jpg" alt="">
Mine works fine, but were unable to get Ahraitch’s image to appear in Chrome his image folder is named IMAGES, he has that in his code yet is unable to produce the image.
@ahraitch What Operating system do you use?
I’ll have to study your response to take it all in.
I’m running the HTML from Live Server within VS Code.
Windows 11 Home V.24H2
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.