Image links

To create image links, all you need to do is place the <img> tag in between the <a> and </a> tags. In our example below, we will use the image demo.gif from our main directory and we will link it to the index.php page in our html directory.

<a href="index.php"><img src="/demo.gif" /></a>

We used relative and absolute pathnames in the code above and it is much more shorter than writing out the whole URL. Below is how the example would look like.

You can see that there is a border around the image, you can remove the border by using the border="" attribute in the <img> tag.

<a href="index.php"><img src="/demo.gif" border="0" /></a>

Copyright Brains That Work .
Theme by Pool theme design by Borja Fernandez. ^Top^