| View previous topic :: View next topic |
| Author |
Message |
sancakozgecan
Joined: 29 Oct 2005 Posts: 4
|
Posted: Sat Oct 29, 2005 12:00 pm Post subject: Adding images to HTML |
|
|
hi!
i began to learn about html for 1 day,
i have a problem, when i add an image to html tags, it doesnt seems as the image in the web page, it looks "red X"... I tried to improve but impossible...
what can i do for succes??
Greetings and thanks |
|
| Back to top |
|
 |
|
|
webmaster Site Admin

Joined: 17 Aug 2004 Posts: 3589 Location: Sweden
|
Posted: Sat Oct 29, 2005 12:17 pm Post subject: Re: Adding images to HTML |
|
|
Hi and welcome to DEVPPL
When you should put an image on your site you should use:
| Code: |
| <img src="image.jpg" alt="Description if the browser can't view images" /> |
So what you need to do it to be sure the SRC for the image is correct. If you put this tag on index.html, the image.jpg should be in the same folder. If image.jpg is in a folder called images, the code should look like this:
| Code: |
| <img src="images/image.jpg" alt="bla bla bla" /> |
Another way is to use the whole URL for the image, like this:
| Code: |
| <img src="http://www.yoursite.com/images/image.jpg" alt="bla bla bla" /> |
And this is what I prefer, use a slash before the image location, that way you can add move the index.html -file to different folders without having to change all the image codes, like this:
| Code: |
| <img src="/images/image.jpg" alt="bla bla bla" /> |
Hope it will work out for you. =) |
|
| Back to top |
|
 |
sancakozgecan
Joined: 29 Oct 2005 Posts: 4
|
Posted: Sat Oct 29, 2005 4:32 pm Post subject: Re: Adding images to HTML |
|
|
Thank you for your kindly welcome and your answers...
But all those also dont work, however i do exactly as u write and in my book..
Is there any other possibilty??
Greetings and thanks |
|
| Back to top |
|
 |
sancakozgecan
Joined: 29 Oct 2005 Posts: 4
|
Posted: Sat Oct 29, 2005 4:51 pm Post subject: Re: Adding images to HTML |
|
|
Actully i found something,
When i add any image in jpeg mode, i cant add but if in .gif then i can add it in my page,
what can i do to be able to add "jpeg" images??
Thanks and greetings
XXXX |
|
| Back to top |
|
 |
Phate 500+ Club

Joined: 21 Nov 2004 Posts: 818 Location: 127.0.0.1
|
Posted: Sun Oct 30, 2005 6:06 am Post subject: Re: Adding images to HTML |
|
|
make sure of the extension...
there are .jpg AND .jpeg |
|
| Back to top |
|
 |
James
Joined: 06 Nov 2005 Posts: 1 Location: storytown village
|
Posted: Sun Nov 06, 2005 4:57 pm Post subject: how 2 insert images |
|
|
How to add an image to your HTML page:
<img src="URL OF IMAGE">
And if you would like textfloating on it when the mouse goes over it do this:
<img src="URL OF IMAGE" alt="TEXT YOU WANT FLOATING">
Simple. |
|
| Back to top |
|
 |
ReFredzRate 1000+ Club

Joined: 20 Aug 2004 Posts: 2186 Location: Netherlands
|
Posted: Sun Nov 06, 2005 6:50 pm Post subject: Re: Adding images to HTML |
|
|
Just an extra note for you guys. If you're running a webserver software package on your home computer, you may have noticed that your computer does not make any difference between .JPG and .jpg, or .GIF and .gif. The webservers around the internet are case sensitive though, so if you are referring to an image that is .JPG, make sure in your source it is referring to that image with a .JPG extension, instead of .jpg.
Welcome to DEVPPL guys! |
|
| Back to top |
|
 |
C@L 250+ Club

Joined: 13 May 2005 Posts: 448 Location: Lpool, England
|
Posted: Sun Nov 06, 2005 8:34 pm Post subject: Re: Adding images to HTML |
|
|
never knew that
nice 1 ReFredz  |
|
| Back to top |
|
 |
webmaster Site Admin

Joined: 17 Aug 2004 Posts: 3589 Location: Sweden
|
Posted: Sun Nov 06, 2005 10:29 pm Post subject: Re: Adding images to HTML |
|
|
| Case sensitivity can be put on or off, if you install apache in a windows server, case sensitivity is off. But I think that all of the webhosts use case sensitivity. |
|
| Back to top |
|
 |
johneva 500+ Club

Joined: 29 Oct 2005 Posts: 561 Location: Stafford, England
|
Posted: Sun Nov 06, 2005 10:49 pm Post subject: Re: Adding images to HTML |
|
|
Hi
Another thing that can make it so images are not displayed somtimes,
is if Front Page extensions are turned on, on the server and the site was not made in front Page.
I have had that problem.
Thanx John |
|
| Back to top |
|
 |
|