Skip to main content

Posts

Showing posts from April, 2010

How to add a link to your image using HTML

Here is a step by step on how to make an image link in HTML.

1.) Open your web page using your HTML editor.

2.) Find the image on your page that you want to make linkable.

3.) Add the code that is highlighted in orange to your image tag.


     <a href="http://yourURL"><img src="yourImage" alt="imageDescription" /></a>


4.) Replace "yourURL" with the location of where you want your image to link to.

5.) To make your image link to another web page and make that web page open in a new tab in the browser you can add the following to the link.


                 <a href="http://yourURL" target="_blank"><img src="yourImage"                   alt="imageDescription" /></a>