1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Cannot get pictures onto my new website

Discussion in 'Web Design & Development' started by ohdearme, Apr 23, 2017.

Thread Status:
Not open for further replies.
Advertisement
  1. ohdearme

    ohdearme Thread Starter

    Joined:
    Apr 23, 2017
    Messages:
    4
    Hello, I have just this moment joined. I am a novice and am using Notepad ++ and Filezilla to upload my html website (Windows 10 on my Asus laptop) but,
    No photos will show, I just get a tiny pale blue square with a diagonal line.
    I have come across a text stating, "Some pictures have been blocked to prevent the sender from identifying your computer. Open this item to view the pictures".
    Would that be something to do with it? I am getting desperate and so want to enjoy learning and doing this.
    Regards
     
  2. Sponsor

  3. colinsp

    colinsp Colin

    Joined:
    Sep 5, 2007
    Messages:
    2,102
    Probably you haven't linked the photos correctly in your html to where they are stored on your webserver. Show us the code (posted in code tags) and or the url.
     
  4. ohdearme

    ohdearme Thread Starter

    Joined:
    Apr 23, 2017
    Messages:
    4
    Thank youfor replying Colinsp, I think that this is what you mean, hope I am right.
    <!DOCTYPE html>
    <html>
    <head>
    <title>...</title>
    </head>
    <body>
    <p><img src="c:/users/alan/Desktop/allfieldwebsite/Images/allfieldlogo.gif alt=log height="200" width="150"></p>
    <img src="c:/users/alan/Desktop/allfieldwebsite/Images/ombudlogo.jpg alt=log height="200" width="150"></p>
    <h1>blah blah blah </h1>
    <h2></p> blah blah blah
    p><br>blah blah blah
    <p></br>blah blah blah
    </p><h2>Daleham Gardens</h2>
    ><br><h3>balh blah blah<br></h3>
    We will be back soon,
    </body>
    </html>

    Your help much appreciated
     
  5. ohdearme

    ohdearme Thread Starter

    Joined:
    Apr 23, 2017
    Messages:
    4
    By the way Colin, the index file, called index, with html extension at the end and the pics are all in one folder
     
  6. colinsp

    colinsp Colin

    Joined:
    Sep 5, 2007
    Messages:
    2,102
    This is your problem

    Code:
    "c:/users/alan/Desktop/allfieldwebsite/Images/allfieldlogo.gif
    
    The image url is to your local hard disk C drive not to the webserver.

    You need to change it to probably

    Images/allfieldlogo.gif

    You are better off using all lower case for paths so images would be better than images. All your images should be stored in this folder on your webserver. Also don't forget to balance your quotation marks.
     
  7. ohdearme

    ohdearme Thread Starter

    Joined:
    Apr 23, 2017
    Messages:
    4
    Thank you Colin, referring to my own hard drive seems obvious (now that you told me) but I can still not get my pictures on after your advice .Should my images have the extension on the image name and should the index file say html or htm?

    have a feeling that I am doing something very obvious that is wrong.

    Thank you for your time.
    Alan
     
  8. colinsp

    colinsp Colin

    Joined:
    Sep 5, 2007
    Messages:
    2,102
    Your html file should be located in the root html folder of your website probably public_html

    Put your images in public_html/images

    Then change the two lines in your file to

    Code:
    <p><img src="images/allfieldlogo.gif " alt="logo1" height="200" width="150"></p>
    <p><img src="images/ombudlogo.jpg" alt="logo2" height="200" width="150"></p>
    
    You have missing quotes and a missing p tag in your original code.
     
  9. colinsp

    colinsp Colin

    Joined:
    Sep 5, 2007
    Messages:
    2,102
    htm or html are both valid file extensions, I always use html.
     
  10. Sponsor

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Loading...
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/1188900