<abbr title="hover text">the text to hover over</abbr> yeilds: the text to hover over. You can also use a title inside of <span> or <a> or anything else, but <abbr> is the semantic way to do it when it's actually a translation. Plus it gives you that little dotted underline thing on many browsers which clues people into it. Sometimes I do <span title="secret message" style="cursor:help;">plain text</span> so that it is less obvious: plain text.
no subject
Date: 2010-08-08 04:44 am (UTC)<abbr title="hover text">the text to hover over</abbr>
yeilds: the text to hover over. You can also use a title inside of<span>
or<a>
or anything else, but<abbr>
is the semantic way to do it when it's actually a translation. Plus it gives you that little dotted underline thing on many browsers which clues people into it. Sometimes I do<span title="secret message" style="cursor:help;">plain text</span>
so that it is less obvious: plain text.