Friday, April 18, 2008

Test Five (using an image to link to a site)

Okay here's where I see if I can combine a couple of the previous things.
I'm going to see if I can get an image to be a link to a website.

Test:
I'm going to try this: (though possibly not the neatest way this can be done):



Okay again that seems to work.

Here's the code (ignore the ...) :

<...a href="http://www.norton-associates.ie/mainsite/"><...img src="http://img.photobucket.com/albums/v680/pihjin1/ChristmasSmall.jpg"><.../a...>

So it's combining the two opening tags
<...a href> (for the location of the website)
and <... img scr> (for the location of the image)
with the one closing tag of <.../a>

Remember the tag for the website comes BEFORE the one for the image.
So you put the website down first and then cover it with the image.
(I tried it the other way around and while the image still shows, it doesn't link to anything.)

Now I'm going to publish this and check it all again.

No comments: