mozilla firefox - image alternative text
Moderator: General Moderators
mozilla firefox - image alternative text
How to make up mozilla firefox browser to show up alternative text while mouse over image like IE does?
By putting the text in the title attribute as the HTML spec tells you to. Alt text is only for when the browser is unable to display the image, title text is for the tooltip.
Code: Select all
<img src="e;image.gif"e; title="e;An image"e; alt="e;Display me if image.gif is missing"e;>-
rashedkarim
- Forum Newbie
- Posts: 2
- Joined: Thu Jun 02, 2005 5:26 pm
Hi there,
You can do this using the title attribute of the <img> tag. Try this:
You can do this using the title attribute of the <img> tag. Try this:
Code: Select all
<img title="this is an image" src="/myImagePath.jpg" />Code: Select all
Now, when the mouse hovers over the image, 'this is an image' will show as a tooltip.