What is the easiest way to create an HTML mouseover tool tip?

HtmlTooltip

Html Problem Overview


What is the easiest, cleanest way to create an HTML mouseover tool tip without using JavaScript?

<img id=Pennstate src="/blah" style="cursor:pointer;">

mouse over that and have a a nice tooltip "We are Pennstate!"

Html Solutions


Solution 1 - Html

The easiest way is to use the native HTML title attribute:

<img src="https://stackoverflow.com/favicon.ico"
     style="cursor:pointer;"
     title="Stack Overflow">

But if you need more, try the tooltip widget provided by jQuery UI since version 1.9.

Solution 2 - Html

If you don't care much what the tooltip looks like you can always just use the "title" attribute

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionstackoverflowView Question on Stackoverflow
Solution 1 - HtmlSamichView Answer on Stackoverflow
Solution 2 - HtmlJaime GarciaView Answer on Stackoverflow