Mccarthy19 Mccarthy19 - 18 days ago 6
HTML Question

Adding an info label to my image

Im not entirely sure what this is actually called which is probably why I havent been able to find help elsewhere.

Basically when I hover my mouse over my image I want it to tell me what it is, for example tell me that, the image is the delete button.

"<td><a href=$del><img src=\"del.png\"></td>";


This is working fine no issues with what I want it to do. Just want a bit of info about what its doing when mouse is over the image?

Thanks

Answer

You can use "title" attribute, example:

"<td><a href=$del><img src=\"del.png\" title='EXPLANATION HERE'></td>";

In this case the text "EXPLANATION HERE" will appear when the mouse is over the image.

Comments