- Place your image in the HTML document:
<img src="image.gif" alt="alt text" />
- In front of the image tag, add your starting anchor link:
<a href="URL"><img src="image.gif" alt="alt text" />
- Add a style to remove the border from the image:
<a href="URL"><img src="image.gif" alt="alt text" style="border:none;" />
- Then close the anchor tag right after the end of the image tag:
<a href="URL"><img src="image.gif" alt="alt text" style="border:none;" /></a>
If you leave off the style, the image will have a border around it in the default link color.
from http://webdesign.about.com/od/htmltags/ht/htlinkimage.htm
No comments:
Post a Comment