Embeded links?

Status
Not open for further replies.

pcbres12

Baseband Member
Messages
34
How do I embed a link into a picture? As in like you hover over the pic and it comes up with the little hand and you click it and takes you to the website of the picture? I am awhere of the <IMG SRC.=... > code and I am using that.

PS: This is in HTML.
 
I think this is what you mean.

Code:
<a href="http://www.google.com"> 
    <img src="google.jpg" alt="Google" /> 
</a>
 
I think this is what you mean.

Code:
<a href="http://www.google.com"> 
    <img src="google.jpg" alt="Google" /> 
</a>

Almost... you need to add the title attribute to the anchor.

Code:
<a href="http://www.google.com" title="Hover text here"> 
    <img src="google.jpg" alt="Google" /> 
</a>
 
The alt tag gives the hover text of the pic too. You don't need to title unless you want the name of the link and not the picture.
 
Status
Not open for further replies.
Back
Top Bottom