SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Jul 2009
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    The Divers-Circle Image Won't Display

    I'm on page 49 of the manual and i'm already having problems

    Below is what i've typed up - exactly as the textbook, but nothing is working....i've uploaded the files from the archive folder and have it all together with my Website folder. Can someone help?

    -Webbie212

    <p><img src="divers-circle.jpg" width="200" height="162" alt="A circle of divers practice their skills"/></p>

  2. #2
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,044
    Mentioned
    187 Post(s)
    Tagged
    2 Thread(s)
    Hi Webbie212, welcome to the forums,

    This is most likely a path or spelling problem. i.e. the image file must be named "divers-circle.jpg", case matters, and with that src value, it must be located in the same folder as the HTML file with that img tag in it.

  3. #3
    SitePoint Addict Belfast75's Avatar
    Join Date
    Oct 2005
    Location
    London, England
    Posts
    215
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Can you try the full URL for the image. eg:

    Code HTML4Strict:
    <p><img src="http://www.yoursite.com/images/divers-circle.jpg" width="200" height="162" alt="A circle of divers practice their skills"/></p>

    This will help you see if its the path to the image or something else with your code.

    As 'Mittineague' says, its most likely either the image hasn't been uploaded to the same folder as the html page calling it or there is a (possibly subtle) spelling mistake.

    Good luck

  4. #4
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,044
    Mentioned
    187 Post(s)
    Tagged
    2 Thread(s)
    Another less common reason is that the file could be corrupt. If the path and spelling are OK, try opening the file in a graphics app.

    Another thing to be careful about is what you edit your files with. You should use a plain text editor, eg. Notepad, not Word. Rich text editors can add whitespace, insert BOMs, change to fancy quotes, etc. which can really mess things up and are not always easy to find.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •