Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

images in html

Status
Not open for further replies.

guitar2

Programmer
Jan 20, 2002
5
0
0
US
i am having a problem getting the images to show up on my web page. they just come up as boxes with some shapes in it.
the only code that i have found to call an image in html is
<img src=&quot;filename.???&quot;>. am i doing something wrong.
 
This is correct syntax if the img is in the same directory or folder as your page. IE:

ROOT (Folder)
index.html (File)
page2.html (File)
ANOTHER FOLD (Folder)

If your image is in the root folder with index.html and page2.html the tag is <img src=&quot;image.jpg&quot;> If the image is in say the &quot;Another Fold&quot; directory it is like this <img src=&quot;ANOTHER FOLD/image.jpg&quot;>

Hope that helps. DeZiner
Never be afraid to try something new.
Remember that amateurs built the Ark.
Professionals built the Titanic
 
If you give us the link we can check!
Also you should include alternate text with images, so when your image does not display you will see this alternate tet in the &quot;image box&quot;
your code becomes:
<img src=&quot;dir/image1&quot; alt=&quot;This is Image 1&quot;>



É enzo@endamcg.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top