Forum Moderators: mack
Anyway I have 3 .com websites and I cannot get my images to show up nor get my pages to link to the others. (They are 4 page websites)
I have tried several different ways to try and get the images to show up. A few are:
<img src=butterfly.jpg">
<img src="http://mysite.com/images/butterfly.jpg">
and to link to another page using a image:
<a href="http://mysite.com/page2.html"> <img src="images/butterfly.jpg" border="0" width="150" height="50">
<a><a href="http://mysite.com/page2.html"> <img src="images/butterfly.jpg" border="0" width="150" height="50"></a>
I have two sites that use the Cpanel (Breezeland and Newbiesite) and one that uses only FTP (webhostingforfree) and those images won't show either so I have that one redirecting.
Can anyone help this "Dum Dora"?
Thanks in advance
Cindy
<img src=butterfly.jpg">
<img src="http://mysite.com/images/butterfly.jpg">
The first example is missing a quote mark before butterfly.jpg - they always need to be in pairs.
The second one is correct syntax - it *should* work IF you actually have a folder named "images" on the site. There's also a chance that the server is not configured to handle the domain unless you include the "www." before the domain name. Added, it wouldbe better (thought not required) to include the height, width, and border attributes in the image tag.
<a href="http://mysite.com/page2.html"> <img src="images/butterfly.jpg" border="0" width="150" height="50">
<a><a href="http://mysite.com/page2.html"> <img src="images/butterfly.jpg" border="0" width="150" height="50"></a>
The first example needs a slash a - a closing tag for the anchor.
The second example should work, but again, only IF you have an "images" folder.
You may be struggling with the control panels -- maybe look to their Help sections for clues.
My feelin
Welcome to Webmaster World!
There aren't any Dum Dora's when you're first coding html -- it's usually the small stuff that's going to mess you up.
First, have you uploaded your images to the server? That's a mistake we all make from time to time, especially when using FTP.
Then, check all of your linking. Be sure you are calling files from the correct folder. For example...
<img src=butterfly.jpg">
and
<img src="http://mysite.com/images/butterfly.jpg">
...are not the same. If butterfly.jpg is in the images folder, the only page that can correctly call it must also be in the images folder. With the fully qualified URL in the second example, any page will be able to call the image from anywhere.
If your home page is calling the image...
<img src="images/butterfly.jpg">
...should work.
And also be sure get get all of the quote marks and < > in the right place.
And here...
<a href="http://mysite.com/page2.html"> <img src="images/butterfly.jpg" border="0" width="150" height="50"></a>
...you need the closing anchor tag. Here...
<a><a href="http://mysite.com/page2.html"><img src="images/butterfly.jpg" border="0" width="150" height="50"></a>
...the first anchor messes things up.
If the pages are in the same folder...
<a href="page2.htm">Go to page 2</a>
Or one folder down...
<a href="other-pages/page2.htm">Go to page 2</a>
Start simple an you'll get used to it.
Jim