HELP! Html image file!

Reply

Join Date: Jun 2005
Posts: 34
Reputation: Croft .L is an unknown quantity at this point 
Solved Threads: 1
Croft .L's Avatar
Croft .L Croft .L is offline Offline
Light Poster

HELP! Html image file!

 
0
  #1
Sep 10th, 2005
Yo,

Can somebody tell me the code to put an image file in to an html document.
But not from a URL but from a file saved yo my computer!
Thanks
Lifes to short not to! :lol:
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 1,655
Reputation: tgreer is an unknown quantity at this point 
Solved Threads: 35
Team Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: HELP! Html image file!

 
0
  #2
Sep 10th, 2005
You have to provide a path to the image. HTML documents use URLs for paths. If the image is in the same directory as your html file, then you use the filename.

The tag is "img":

<img src="myImage.jpg">
Reply With Quote Quick reply to this message  
Join Date: Sep 2005
Posts: 43
Reputation: ayksolutions is an unknown quantity at this point 
Solved Threads: 1
ayksolutions's Avatar
ayksolutions ayksolutions is offline Offline
Light Poster

Re: HELP! Html image file!

 
0
  #3
Sep 10th, 2005
You have to upload your image first, you can't just host it off of your computer.
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 75
Reputation: Sailor_Jerry is an unknown quantity at this point 
Solved Threads: 2
Sailor_Jerry's Avatar
Sailor_Jerry Sailor_Jerry is offline Offline
Junior Poster in Training

Re: HELP! Html image file!

 
0
  #4
Sep 13th, 2005
If your html page utilizes this image on multiple pages I would move the logic to a css file. It’s also good practice

You could do something like this in a css file if it were a background image or something. Just an example.
HTML and CSS Syntax (Toggle Plain Text)
  1. body{background: url(path/to/image/on/your/computer/image.gif) repeat-y;}
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC