HTML coding help

Recommended Videos

Ray Danaloo

New member
Dec 7, 2010
9
0
0
Hey guys,
I have to write a web page for one of my classes. I have everything figured out except pictures. I cannot code a picture, every time I try I get a broken link icon on my screen.
I am using

If anyone can help I will greatly appreciate it.
Thanks Guys
 

Ray Danaloo

New member
Dec 7, 2010
9
0
0
well that's embarrassing the code is img src="picturename" /
(excluded the arrows so it wouldn't give me a broken link icon)
 

burningdragoon

Warrior without Weapons
Jul 27, 2009
1,935
0
0
My guess is that you don't have the correct path for the image source. There are two ways to do that. Let's assume your website is at http://www.raydanaloo.com and you have your image picture.jpg located at the top folder, so http://www.raydanaloo.com/picture.jpg

Showing your image like so:
<img src="http://www.raydanaloo.com/picture.jpg" />

If your individual page is in the same folder you can lose the first part of the url, called a relative link:
<img src="picture.jpg" />

Relative links work a little different if the image is not in the same folder as the page, but that's unnecessary for what you are doing I assume.