Links: Images

It is common to use images as links:

HTML file: Displayed by browser:

<a href="boo.html" target="_blank">
<img src="images/ghost.jpg" alt="ghost" style="width:90px;height:95px;"></a>

<p>If you are using IE9 (and earlier), there will be a border around this image.</p>

ghost

If you are using IE9 (and earlier), there will be a border around this image.


<a href="boo.html" target="_blank">
<img src="images/ghost.jpg" alt="ghost" style="width:90px;height:95px;border:0"></a>

<p>The <b>border:0</b> is added to prevent IE9 (and earlier) from displaying a border around the image.</p>

ghost

The border:0 is added to prevent IE9 (and earlier) from displaying a border around the image.


Back buttonTable of ContentsNext button