Creating a local image link

Discussion in 'HTML & Website Design' started by chrisj, May 6, 2011.

  1. #1
    When I try to create a link of an image on a web page, so site visitors can click it to return to the home page, it always creates a new web session of the home page, instead of just going right to the page like my faq page text link. I've tried with http:// etc. and just www. etc. but both open up a new web session of the home page. Can you help me get it right? Thanks


    <a href="www.examplewebsite.com" target="_blank"><img src="/images/logo.gif" border="0" alt=" "/>
    Code (markup):
     
    chrisj, May 6, 2011 IP
  2. JimmyRP

    JimmyRP Active Member

    Messages:
    456
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    60
    #2
    <a href="index.html" title="Index"><img alt="Image Alternate Name" src="images/logo.gif" border="0" /></a>
    Code (markup):
    Try that.
     
    JimmyRP, May 6, 2011 IP
  3. Drey

    Drey Peon

    Messages:
    39
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Did you try closing the anchor tag? ( </a>)
     
    Drey, May 10, 2011 IP
  4. kardus

    kardus Peon

    Messages:
    28
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Your problem is target="_blank". Remove it. target="_blank" means you want the link to open in a new window.
     
    kardus, May 10, 2011 IP