How do I get anchor text in an image link?

Discussion in 'Link Development' started by SKE11, Nov 6, 2007.

  1. #1
    Can anyone tell me if there is any way of getting anchor text into an image link.

    I have an image that sites use to link to my site, but I want the keywords in the anchor text of the link, however if they use the image to link to me then I get no anchor text, is there a way around this?

    I was wondering if using a title= in the link would act as anchor text, like below

    <a href="http://www.MYSITE.com/" title="KEY WORDS GO HERE"><img src="http://www.MYSITE.com/NAMEofIMAGE.jpg" ></a>


    Can anyone help with this, if this is not the way to go?

    Thanks

    Sean
     
    SKE11, Nov 6, 2007 IP
  2. qazu

    qazu Well-Known Member

    Messages:
    1,834
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    165
    #2
    use alt rather than title as in
    <a href="http://www.MYSITE.com/" alt="ANCHOR TEXT GO HERE"><img src="http://www.MYSITE.com/NAMEofIMAGE.jpg" ></a>
     
    qazu, Nov 6, 2007 IP
  3. SKE11

    SKE11 Peon

    Messages:
    214
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks for that qazu, will that act as though it were anchor text, in the eyes of the search engines?
     
    SKE11, Nov 6, 2007 IP
  4. souther

    souther Peon

    Messages:
    211
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Actually the proper html should be:
    <a href="http://www.MYSITE.com/" title="KEYWORDS GO HERE"><img src="http://www.MYSITE.com/NAMEofIMAGE.jpg" alt="ANCHOR TEXT GOES HERE" /></a>

    Anchors cannot have an ALT tag only IMGs.
     
    souther, Nov 7, 2007 IP
  5. sultanofseo

    sultanofseo Notable Member

    Messages:
    9,930
    Likes Received:
    405
    Best Answers:
    0
    Trophy Points:
    265
    #5
    souther is right, anchor text should use alt tag within image source
     
    sultanofseo, Nov 7, 2007 IP
  6. qazu

    qazu Well-Known Member

    Messages:
    1,834
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    165
    #6
    Ah, sorry, I didn't check that, souther is right. And, yes, it will serve as anchor text.
     
    qazu, Nov 8, 2007 IP
  7. rahmat

    rahmat Active Member

    Messages:
    270
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    60
    #7
    Great. Thanks for correcting it.
     
    rahmat, Nov 9, 2007 IP
  8. SKE11

    SKE11 Peon

    Messages:
    214
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #8
    thanks for that

    I will correct the HTML

    thanks again

    Sean
     
    SKE11, Nov 10, 2007 IP
  9. Forrest

    Forrest Peon

    Messages:
    500
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    0
    #9
    And for the record, there's no such thing as anchor text in an image link.

    You could use both, though:

    <a href="somewhere">
    <img src="something" alt="whatever">
    some text also
    </a>

    You'll need to style it to not look ugly. Most people use a background image and set the height/width of the anchor.
     
    Forrest, Nov 10, 2007 IP
  10. wilfordsy

    wilfordsy Peon

    Messages:
    203
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Very helpful. I was also searching for a way to add some seo juice for some of my image links. Anyway, I think the best would be to use both alt and title. :)
     
    wilfordsy, Nov 11, 2007 IP