Re: Image Src

Hi

The first one contains the IP address of the server on which the image can
be found.  It is essentially the same as the second one, where the hostname
of the server is used instead.

For example, your image (picture.gif) will be opened from the "images"
directory, which is situated in the root dir on the server "xxx.xxx.xxx.xxx"
or www.domain.com.

Your third example is a relative address.  This means that the picture will
be opened, merely by looking in the specified directory in relation to the
html page in which the picture is called for.

For example, if you have a page called index.html and you put a picture in
it with SRC="images/picture.gif", the picture will be opened from the
"images" directory, and this directory will be looked for ONLY in the
directory where the index.html file is stored.  If you use
SRC="../images/picture.gif", the "images" directory will be accessed from
the directory which is one level above the one in which the html page is
situated.

----- Original Message -----
From: "Diego Fliess" <dfliess@axesor.com>
To: <www-html@w3.org>
Sent: Friday, November 10, 2000 7:35 PM
Subject: Image Src


> Hi!
> somebody can explain me the diference between:
>
> <img src="http://xxx.xxx.xxx.xxx/images/picture.gif">
> ,
> <img src="http://www.domain.com/images/picture.gif">
> and
> <img src="/images/picture.gif">
>
> thanks
>
> diego
>

Received on Friday, 10 November 2000 14:15:57 UTC