Show image tooltip in Mvc3

I am using asp.net MVC3 and I want to show a table containing course information in that I have a field called "Information" that displays the image. I want to show a tooltip when the mouse is made in this image

I am showing a lik this image:

<img id="ok" src="../../Images/info.jpg" alt="tooltip"/>

I do not want to use any added plugin

can someone help me with this?

+3
source share
2 answers

Use titleas well altin the Html tag

<img id="ok" src="../../Images/info.jpg" title="This is your tooltip message"/>
+7
source

alt img , . , .

title .

alt , ( alt) XHTML, .

+4

All Articles