Click to See Complete Forum and Search --> : can't apply my image in an html page!


lukel2
05-14-2006, 09:19 PM
Help!!
For some reason I can't insert my image in an HTML file. This is only my second time using html. I am using notepad, and I have ie. I put this tag in:

<IMG SRC="my skateboard.gif">

but when i saw the web page it came up as a box with a red x in it. I don't know what can be wrong with it, I am saving it as an html file (I put .htm at the end) and all other tags are working but not this. I am using the htmlgoodies.com primers for learning about html.
Thanks!

Luke

NogDog
05-14-2006, 09:33 PM
Is the image in the same directory as the html page? (If it's in a different directory, then the src attribute will need to point to that directory, either as a relative or absolute path.)

If that's not the problem, you might want to try renaming the file so that there are no spaces in the name, as that might cause confusion (e.g.: "my_skateboard.gif"). (Don't forget to change the reference to it in the HTML, too.)

pcthug
05-14-2006, 10:08 PM
Amend the src to match the following if you deem it neccesary to have a space in your filename:
<img src="my%20skateboard.gif">

I also suggest you steer clear of html goodies, use http://www.w3schools.com instead.

lukel2
05-15-2006, 02:52 PM
I renamed it so there are no spaces in it, it didn't work. And NogDog, I don't really understand what your'e trying to say. I'm new to this :confused: So please help me I still need help :mad:

TiGGi
05-15-2006, 03:40 PM
<img src="myskateboard.gif">
your html file and your image needs to be in same folder
your image name has to be myskateboard.gif
try opening your image in browser manualy, just to make sure it's valid image!!!

lukel2
05-16-2006, 03:52 PM
thanks! one of my pictures works now but the other doesnt. it must just be a problem with my computer because i sent the html file to my friend and he said the images work fine with him. (i also sent him the image files)