Mac Forums

Mac Forums (http://www.mac-forums.com/forums/)
-   Web Design and Hosting (http://www.mac-forums.com/forums/web-design-hosting/)
-   -   Trouble uploading pictures (http://www.mac-forums.com/forums/web-design-hosting/2711-trouble-uploading-pictures.html)

flyin3d 11-20-2003 03:43 PM

Trouble uploading pictures
 
Hello,
I am trying to create my first web page and am having trouble getting the pictures that I upload to the server to be viewable on the web page. The text comes out but I get the little box with the 'x' in it and blow it it says 'Apple Mark'. I am saving the page as html, created on MS Word, uploaded using fetch to a roadrunner server.
Thanks in advance.

muso 11-21-2003 04:40 PM

I presume you don't know any html? What you have to do is open the .html file (your main page should be called index.html) in a text editor like textedit or BBEdit (not ms word).

Scroll down a bit and you'll see <body> and after that, maybe some <font> and <p> or even <table> tags, surrounding the text on your page. Find the text closest to your image, and near it should be an <img> tag. This is the tag that specifies the location of your image. For example, if your image is in the same folder online as your index.html file, the image tag should say:
<img src="nameoffile.jpg">
There may be other things apart from src="" like width, height and alt, but you don't really have to worry about them yet. You can put an alt="" tag in there if you want and inside the quotes, fill in a description or name of your image.

I'm guessing that the code specifies the wrong name of the image and that's why it won't display.

galaga 01-07-2004 11:06 AM

The simplest rule to bear in mind when writing web pages is this-

When something that you think should work, doesn't work, go back through your code and scour it for a missing/erroneous ", <, >, /, \ etc. Twice!

I have been writing code for years and you would be amazed how often this obvious little rule still sorts things out.


All times are GMT -4. The time now is 08:41 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.