Compare Mobile Phones | BlackBerry | Western Union Money Transfer | Credit Cards | Credit Counseling
Question HTML [Archive] - PCMech Forums

PDA

View Full Version : Question HTML


ramsey18428
09-16-2007, 07:21 PM
Hey, I have an assignment in HTML. It gives me a few images and a text document and its asking me to make five web pages out of it and to create a "storyboard" of the sites contents and links before I do this. I have managed to get 5x html files, but whenever I try to upload an image with the <img src="new.jpeg" alt="new" /> code in any of them, the image never shows up, I do not know what I am doing wrong. Can anyone explain to me how to create a "storyboard" and how the images I load will display? Everything I am working on is in the same file if you are wondering. Thanks in advance.

Force Flow
09-16-2007, 08:18 PM
Go ahead and post the HTML code of one of your pages iin the [ code ] [ /code] forum tags.

mairving
09-16-2007, 08:36 PM
Most likely it has to do with paths. If you are making a HTML file on your computer then you can link to it like you did above. However, this won't work if someone else wants to view on theirs. You will need to either transfer both the images and the HTML for others to be able to view it.

&lt;img src="new.jpg"&gt;
This assumes that the image is in the same directory as the HTML file.
&lt;img src="images/new.jpg"&gt;
This assumes tha the image is in a sub-folder below the HTML file.
&lt;img src="http://somesite/images/new.jpg"&gt;
This makes the image viewable from any computer assuming that images have been uploaded to the site.

Welcome to PCMech.