Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

display an alternate text on mouseover for a table entry

Tags:

html

I have a table one of whose column displays the employee id of the employees. i need to display there names when mouse moves on it . can anyone help me with that??

like image 807
user1643087 Avatar asked Dec 13 '12 15:12

user1643087


People also ask

Does alt text show on hover?

Unlike the Microsoft Internet Explorer browser, Mozilla Firefox, Google Chrome, and other browsers do not display the text used in the alt attribute when hovering over an image. The alt text is designed to display when an image doesn't load, whereas the title text is designed to display balloon text for images that do.

How do you get mouseover text?

We now have our link. to add mouseover text, just use the "title" attribute, like so: <a href=" " title="This is some text I want to display. ">This link has mouseover text. </a> (see the next line to check this out in action.) This link has mouseover text.


1 Answers

alt is an attribute, not a tag, and it is not for mouse over, it shows up when image is not loaded, try using title instead

So try this

<table>   <tr>     <td title="Employee Name">1</td>     <td title="Another Employee Name">2</td>   </tr> </table> 
like image 162
Mr. Alien Avatar answered Sep 28 '22 19:09

Mr. Alien