Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   HTML (https://www.askmehelpdesk.com/forumdisplay.php?f=446)
-   -   I need some help getting this ";img src" code correct (https://www.askmehelpdesk.com/showthread.php?t=803267)

  • Oct 20, 2014, 03:21 PM
    open933
    I need some help getting this ";img src" code correct
    I have this:

    <!DOCTYPE html>
    <html>
    <body>


    <h1>hello.</h1>


    <p>all I have to show on my personal homepage is this sheet of paper with writing on it.</p><br>
    <br>
    <br>




    <h2>sheet of paper #1</h2>
    <img src="images/sheet of paper #1.jpg" alt="sheet of paper #1 (this is the details of when the www was born and what today's date is)"
    style="width:304px;height:228px">


    </body>
    </html>

    and my site is :a200.atwebpages.com. It's a subdomain. The image isn't displaying on the site. Why? I have 2 files uploaded ------ the index.html file with the above code in it. And the image of a piece of notebook paper I scanned with my scanner. The name of the piece of paper is "sheet of paper #1.jpg". I tried putting a slash in front of the word "images" and then withouyt the slash.
  • Oct 20, 2014, 03:30 PM
    ScottGem
    Did you create a subfolder named images and copy the images file to it?
  • Oct 20, 2014, 04:01 PM
    open933
    Scanned sheet of notebook paper added to website
    What file extension shuld I give this sheet of paper that I scanned to my PC? It says here that it's a jpg. But, on my website, the file doesn't display. Why? How about .bmp instead?
  • Oct 20, 2014, 04:09 PM
    open933
    Quote:

    Originally Posted by ScottGem View Post
    Did you create a subfolder named images and copy the images file to it?

    Yes I did. I'm using filezilla - the free ftp program. And I see here on the right , where I upload to is "/". I opened that. And now have "a200.atwebpages.com". I open that, and under neith of course is "index.html" and "images". Images is a folder. I opened the images folder and uploaded "sheet of paper #1.jpg". Refreshed the website and still see the box with no image displayed.

    Then I thought maybe them i9mage files all never have spaces in their file names. So now I deleted "sheet of paper #1.jpg" and uploaded "sheet_of_paper_#1.jpg". That didn't work. And of course I 4got that the website address shuld be a200.atwebpages.com/index.html.
  • Oct 20, 2014, 04:14 PM
    open933
    Quote:

    Originally Posted by ScottGem View Post
    Did you create a subfolder named images and copy the images file to it?

    I also know that on w3schools.com under the html lessons that they say css is best. But I don't know any more than what's sent to you above basically.
  • Oct 20, 2014, 06:00 PM
    open933
    Quote:

    Originally Posted by ScottGem View Post
    Did you create a subfolder named images and copy the images file to it?


    I googled the Q, and found this page : HTML Image Tag

    But it is wrong. I previewed the image on my PC in 3 different programs and they all say

    "width:2376px;
    height:2736px".

    Then I seen the new results on my website, and the image box became wayyyyyyyy too big.
  • Oct 20, 2014, 06:05 PM
    odinn7
    A jpg file should have no problem displaying on most sites. Have you tried to open the file and view it to see if it even works at all? Perhaps you are trying to put it on your site incorrectly or maybe the file is no good.
  • Oct 20, 2014, 06:11 PM
    open933
    Quote:

    Originally Posted by odinn7 View Post
    A jpg file should have no problem displaying on most sites. Have you tried to open the file and view it to see if it even works at all? Perhaps you are trying to put it on your site incorrectly or maybe the file is no good.


    Every time I start a new site and I start with a heading and paragraph then an image that I add to my "images" folder, then upload the index.html file and the image.jpg file, then I refresh my website, I don't see the image. And I just scanned my PC for viruses yesterday afternoon. So it canjt be a virus. What do you think it is if this happens non stop to me every single time I add an image to a new website?

    How can all my images , every time, be no good?

  • All times are GMT -7. The time now is 12:48 PM.