English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories
0

i am learning html at a website. its cool - but there's something i don understand. to insert a picture from my pc, i shd type: img src="[url, eg: C:\Documents and Settings\..... right?]" but i did and the picture doesn't come out, only those white boxes with a red cross. can anyone html proz help me?

2006-09-12 22:56:56 · 5 answers · asked by boobooz 1 in Computers & Internet Programming & Design

5 answers

The location of the picture is relative to the web page that is displaying it.

Most pictures are in an images folder.

So in My Documents create a folder called My WebPage
Now within My WebPage create a folder images.
Your web page is in My WebPage and your pictures are in images.

The html is


If you now create a new folder within My WebPage called Extra and then put a web page in this folder, the image tag will now be


The ".." is a go back one folder level.

HTML. Its all relative!

2006-09-12 23:49:55 · answer #1 · answered by AnalProgrammer 7 · 0 0



maybe your path is wrong

if theres error again,copy the pic to the same directory of your html page and call it like that



Good luck

2006-09-12 23:01:56 · answer #2 · answered by ibrahim ersoy 2 · 0 0

Your code shows " " marks around too much of the code. Try this instead:




"angry.gif" will be you pictures name and its ending:gif, jpeg, etc.

Just add the full name of your pic in that code above-- should work.

2006-09-12 23:09:57 · answer #3 · answered by Anonymous · 0 0

Put the picture in the same folder of your HTML files.
and use "img src=file.jpg"
For more visit

http://www.w3schools.com/

2006-09-12 23:01:50 · answer #4 · answered by Anonymous · 0 0

If you put C:\documents....... you are putting the pathway that is in your computer.

You need to put the pathway on the server such as:
img src="http://www.mydomain.com/picturefilename.jpg" or gif what ever file type it is

If you have a photo directory on your server you need to include that in your pathway such as:
img src="http://www.mydomain/mypictures/myimage.jpg" or what ever file type it is.

2006-09-12 23:59:26 · answer #5 · answered by Gordon S 5 · 0 0

fedest.com, questions and answers