In need of Help In need of Help - 7 months ago 25
HTML Question

Add hover text without javascript like we hover on a user's reputation

In stackoverflow, when we hover on a user's reputation we see a text. I have seen this at many places and the source code tells me that it can be done without js. And i tried and got only this-

<div="text">hover me</div>

Answer

Use the title attribute.

<div title="text">hover me</div>

or

<span title="hoverin' words">hover me</span>