Dave's Brain

Browse - Programming Tips - How can I make a popup/help/explanation text on an image?

Date: 2013jan21
Language: HTML
Keywords: annotation

Q.  How can I make a popup/help/explanation text on an image?

A.  Use title like this:

<img src="hello.jpg" title="Hello There">
This is very nice when the image is a button (or action) since it tells the user what clicking will do. IE supports alt="Hello There" but other browsers don't (for this purpose).

Add a comment

Sign in to add a comment
Copyright © 2008-2017, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.