Jump to content
Sign in to follow this  
Darkness

Calling Image From Directory

Recommended Posts

Hello,When I try to call an Image from a directory, the image doesn't appear. This is what I've been trying.

<IMG SRC="/IMG/Image.png">

Is there a way to do this with getting an error image?Thanks.-Resolved-

Share this post


Link to post
Share on other sites
<img src="filepath/filename.ext">

Perhaps you have the extra slash before the path and it is causing the error? I just thought you used /... to move up folders, or you just used the folder/filename.jpg style to go deeper into the folders or just the file name itself it if it is in the same folder? Very new to HTML so please don't take me too seriously I am trying to learn by trying to solve others issues as if I had the issue myself.System

Share this post


Link to post
Share on other sites

Perhaps the browser doesn't support that file type or it is just the wrong path? Try loading a different image in the same spot? Sorry I am out of ideas.System

Share this post


Link to post
Share on other sites

Either the path is wrong, the file does not exist (same thing really), or the browser cannot display the file type. If it is a valid image file, and the path is correct, the browser will display it. If you know it is a valid image file and it is not being displayed, then the path is not correct.

Share this post


Link to post
Share on other sites

If it was the right path, and the image was valid, then the browser would display it.

It just seems to make an image error everytime...
What do you mean by it "makes an image error"?

Share this post


Link to post
Share on other sites

The browser you're using might have some sort of setting limiting local content or something like that, but other then that if the image was there the browser would show it, it's just not a very complex issue. Try the absolute path instead of a relative path.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...