That’s called “tooltip” and there is a default browser function for that – as you already noted –, the
title attribute. It can be used on any element. If you want custom tooltips you can do like this:
Code:
<div class="info">
[info icon may go here]
<div>(text here)</div>
</div>
Code:
.info {position: relative;}
.info div {
display: none;
background: white;
padding: 10px;
width: 150px;
top: 5px;
left: 5px;
position: absolute;
}
.info:hover div {display: block;}
Adjust as necessary.