Forum Moderators: martinibuster

Message Too Old, No Replies

Best way to link out with images?

         

driller41

7:36 pm on Sep 2, 2008 (gmt 0)

10+ Year Member



Is this the best way to link out using an image? and does the alt statement become the linkout text that is seen by the search engines?

<a href="http://www.example.com/"><img border="0"
src="pic1.gif" alt="Linking Text">
</a>

[edited by: martinibuster at 9:01 pm (utc) on Sep. 2, 2008]
[edit reason] Please use example.com for examples. Thanks. :) [/edit]

NickL

3:06 pm on Sep 4, 2008 (gmt 0)

10+ Year Member



yes.

Marshall

4:31 pm on Sep 4, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



If you are using XHTML, border="0" is depreciated. use either style="border: none;" in the <img> tag or add to your CSS
img {
border: none;
border-width: 0; /* this is a personal thing I add just in case */
}

Marshall

LifeinAsia

4:36 pm on Sep 4, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Minor nit-picking- use:
<a href="http://www.example.com/"><img border="0"
src="pic1.gif" alt="Linking Text"></a>

In other words, put the closing </a> immediately after the image tag. Otherwise, some broswers will include a noticible underlined space after the image.