Flash Games
 FAQ   Search   Memberlist   Usergroups   Register  Profile   Log in to check your private messages   Log in 


Adding images to HTML



 

Post new topic   Reply to topic  
   DEVPPL Forum Index -> HTML Forum
View previous topic :: View next topic  
Author Message
sancakozgecan



Joined: 29 Oct 2005
Posts: 4

PostPosted: Sat Oct 29, 2005 12:00 pm    Post subject: Adding images to HTML Reply with quote

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
View user's profile Send private message MSN Messenger
webmaster
Site Admin


Joined: 17 Aug 2004
Posts: 3589
Location: Sweden

PostPosted: Sat Oct 29, 2005 12:17 pm    Post subject: Re: Adding images to HTML Reply with quote

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
View user's profile Send private message Visit poster's website
sancakozgecan



Joined: 29 Oct 2005
Posts: 4

PostPosted: Sat Oct 29, 2005 4:32 pm    Post subject: Re: Adding images to HTML Reply with quote

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
View user's profile Send private message MSN Messenger
sancakozgecan



Joined: 29 Oct 2005
Posts: 4

PostPosted: Sat Oct 29, 2005 4:51 pm    Post subject: Re: Adding images to HTML Reply with quote

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
View user's profile Send private message MSN Messenger
Phate
500+ Club


Joined: 21 Nov 2004
Posts: 818
Location: 127.0.0.1

PostPosted: Sun Oct 30, 2005 6:06 am    Post subject: Re: Adding images to HTML Reply with quote

make sure of the extension...

there are .jpg AND .jpeg
Back to top
View user's profile Send private message Send e-mail AIM Address
James



Joined: 06 Nov 2005
Posts: 1
Location: storytown village

PostPosted: Sun Nov 06, 2005 4:57 pm    Post subject: how 2 insert images Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
ReFredzRate
1000+ Club


Joined: 20 Aug 2004
Posts: 2186
Location: Netherlands

PostPosted: Sun Nov 06, 2005 6:50 pm    Post subject: Re: Adding images to HTML Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
C@L
250+ Club


Joined: 13 May 2005
Posts: 448
Location: Lpool, England

PostPosted: Sun Nov 06, 2005 8:34 pm    Post subject: Re: Adding images to HTML Reply with quote

never knew that Wink

nice 1 ReFredz Very Happy
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
webmaster
Site Admin


Joined: 17 Aug 2004
Posts: 3589
Location: Sweden

PostPosted: Sun Nov 06, 2005 10:29 pm    Post subject: Re: Adding images to HTML Reply with quote

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
View user's profile Send private message Visit poster's website
johneva
500+ Club


Joined: 29 Oct 2005
Posts: 561
Location: Stafford, England

PostPosted: Sun Nov 06, 2005 10:49 pm    Post subject: Re: Adding images to HTML Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    DEVPPL Forum Index -> HTML Forum All times are GMT + 1 Hour
Page 1 of 1

 
 
Welcome to DEVPPL.com
You are not logged in, which means that you can't post in the forums.
Click here to Register

If you are a current member here on DEVPPL, please login below:

User: Pass:
Log me on automatically each visit:

 


Powered by phpBB © 2001, 2005 phpBB Group - Modified by DEVPPL

Flash Games - Sitemap