Monday, June 15, 2015

The title inline attribute inside most HTML tags will allow for the text inside to be displayed like a tooltip.

<div title="This is an x.">X</div>

...is an example, and by "like a tooltip" I mean upon mouseover. The alt setting on an img tag may work similarly but can also show up in the classic broken image box.

No comments:

Post a Comment