Trouble uploading pictures

F

flyin3d

Guest
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.
 
Joined
Jan 15, 2003
Messages
4
Reaction score
16
Points
3
Location
Whangarei, New Zealand
Your Mac's Specs
Pwnt
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.
 
OP
G

galaga

Guest
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.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top