views:

150

answers:

3

What is that peice of the HTML code that allows me to provide comments to links before the user is actually clicking on them? Do you know what I mean?

I mean, on my web page I have some hyperlinks, and I want to know some information about it - what I will be taken to if I click on this link - so I just roll over my mouse on that link and a certain kind of caption appears providing me with all necessary info about this link.

I know how to make hyperlinks in HTML, but I have no idea how to make these self-popping -up captions. Can anyone, here , please share with me how to do that? Which tags do I need to use for that?

A simple example would be highly appreciated.

Thank you all in advance!

+3  A: 

Title.

<a href="whatever.htm" title="This will cause a tooltip to appear">link</a>
D_N
Thanks a lot, DN!!!! Exactly what I wanted!!!
brilliant
+1  A: 

I believe you are referring to the abbr tag

The title attribute gives the normal yellowish tooltip.

Alex
Well, I was talking about a hyperlink, but your answer taught me something new, though! Thank you.
brilliant
+3  A: 

If you are going for a title attribute then one problem is the default timeout for the attribute. ie after a fixed time it will disappear.

If you want a tool tip that appears when the users mouseis over that and that does not disappear, then you can use css and javascript to make a tooltip.

Create a Nice, Lightweight JavaScript Tooltip

rahul
WOW, Rahul, this link that you gave me is just wonderful, but the problem is I am only familiar with HTML, I have never tried JavaScript before. Do you think I could incorporate that piece of JavaScript in your example into HTML code with no sudden setbacks?
brilliant