Images Wont Work

liunx

Guest
I can't get images to appear on my webpage. I use the form <IMG SRC=http://www.webdeveloper.com/forum/archive/index.php/"image.gif"> but i just get a logo with an X in it where the picture should be. The only thing I can think of is someone told me it depends on where I save the images because sometimes you need to add directories and subdirectories into the HTML code and I have no clue what those are. Can someone offer some insight. Maybe an explanation of directories and subdirectories and explain how to use them?<!--content-->Using a src of "image.gif" is relative, and refers to the file called image.gif in the same directory as the HTML page. You can refer to images in subdirectories of the one the page is in using something like "somedir/image.gif" and the directory above the page using "../image.gif".<br />
<br />
You can also refer to images absolutely, which is when you give the full URI (including protocol and domain), such as "http://www.example.com/image.gif".<br />
<br />
So, if your HTML page is at <!-- m --><a class="postlink" href="http://www.example.com/somedir/index.html">http://www.example.com/somedir/index.html</a><!-- m --> then<br />
"image.gif" refers to <!-- m --><a class="postlink" href="http://www.example.com/somedir/image.gif">http://www.example.com/somedir/image.gif</a><!-- m --><br />
"otherdir/image.gif" refers to <!-- m --><a class="postlink" href="http://www.example.com/somedir/otherdir/image.gif">http://www.example.com/somedir/otherdir/image.gif</a><!-- m --><br />
"../image.gif" refers to <!-- m --><a class="postlink" href="http://www.example.com/image.gif">http://www.example.com/image.gif</a><!-- m --><br />
<br />
Hope this helps<br />
<br />
Adam<!--content-->what is your url?<br />
<br />
where are you images saved in relation to the page you want them to display on?<!--content-->
 
Back
Top