html text edit image help

Discussion in 'Design and Graphics' started by Rhysd, Apr 2, 2017.

  1. Rhysd macrumors newbie

    Joined:
    Apr 2, 2017
    #1
    i am brand new to html
    i am triying to get image to appear in simple html on my mac book using tex edit
    i set text edit plain text
    i found address of image on the mac book but it denote appear.
    can any any one help me
    Thnks

    address of image on ma book is
    file:///Users/rhysdavies/Desktop/htmlweb/gflogov.jpg

    this is the code i wrote

    <!DOCTYPE html>
    <html>
    <head>
    <title>Page Title</title>
    </head>
    <body>

    <p>Test text .</p>
    <p>more test text </p>

    <img src=“file:///Users/rhysdavies/Desktop/htmlweb/gflogov.jpg" alt=“logo” width="128" height="128">

    </body>
    </html>
     
  2. Darth.Titan macrumors 68030

    Darth.Titan

    Joined:
    Oct 31, 2007
    Location:
    Austin, TX
    #2
    Drop the 'file://' prefix. This should work:
    <img src=“/Users/rhysdavies/Desktop/htmlweb/gflogov.jpg" alt=“logo” width="128" height="128">

    In fact, if your image is in the same folder as your html file, you can drop the path entirely:
    <img src=“gflogov.jpg" alt=“logo” width="128" height="128">

    Do some reading on file paths.

     
  3. Rhysd thread starter macrumors newbie

    Joined:
    Apr 2, 2017
    #3
    thanks for your post i had done a lot of reading up on this. i wouldn't come on here unless i really needed to.
    it was an "" issue thanks for your help
     

Share This Page