/    Sign up×
Community /Pin to ProfileBookmark

alt tags not showing in Mozilla

[FONT=Comic Sans MS]A client of mine has noticed that the alt tags on an image map at [URL=http://www.washnsave.com/nys_imagemap.html]www.washnsave.com[/URL] are not popping up with the addresses like it does in IE. Is this a function that mozilla doesn’t have? I’ve never used Mozilla, so I haven’t a clue about this. How can I get the addresses to show when rolling over a star on the map in Mozilla? Any help would be appreciated. Thanks.[/FONT]

to post a comment
HTML

3 Comments(s)

Copy linkTweet thisAlerts:
@CharlesSep 29.2006 — Actually, it's a bug in MSIE. The value of the "alt" attribute is only to be displayed [i]in place of[/i] the image. It's an accessibility feature for those not using a graphical browser.

http://www.w3.org/TR/html401/struct/objects.html#adef-alt

It's the "title" attribute that is supposed to render as a tool tip.

http://www.w3.org/TR/html401/struct/global.html#adef-title
Copy linkTweet thisAlerts:
@cootheadSep 29.2006 — Hi there cherman25,

IE renders the 'alt attribute' incorrectly. :eek:

The purpose of this attribute is to display image information for those who do not have access to the image for whatever reason.

You should use the 'title attribute' to supply the additional information in compliant browsers like Firefox and Opera. ?

[i]coothead[/i]
Copy linkTweet thisAlerts:
@NogDogSep 29.2006 — Just in case it's not obvious to you from the above two replies, the best practice is to use both the "alt" and "title" attributes when you want the tooltip type of thing:
<i>
</i>&lt;img alt="text if image is not displayable" title="tooltip text" src="/images/img.png"&gt;

For an image that you do NOT want to have a tooltip:
<i>
</i>&lt;img alt="text if image is not displayable" title="" src="/images/img.png"&gt;
×

Success!

Help @cherman25 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...