Trouble uploading pictures
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.
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.
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 07:07 PM.|
Powered by vBulletin
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.