W3C home > Mailing lists > Public > www-html@w3.org > November 2000

Re: Image Src

From: Bart Van Damme <bartvd@fnmail.com>
Date: Fri, 10 Nov 2000 19:49:31 +0100
Message-ID: <004e01c04b46$f8e190a0$0f00000a@Simpson>
To: "Diego Fliess" <dfliess@axesor.com>, <www-html@w3.org>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:44 GMT