Om de ûnderfining foar jo te ferbetterjen is tydlik de funksjonaliteit dan dizze website troch ûnderhâldswurk beheind. Wannear in artikel jo probleem net oplost en jo in fraach stelle wolle, kin ús stipemienskip jo helpe yn @FirefoxSupport op Twitter en /r/firefox op Reddit.

Sykje yn Support

Mij stipescams. Wy sille jo nea freegje in telefoannûmer te beljen, der in sms nei ta te stjoeren of persoanlike gegevens te dielen. Meld fertochte aktiviteit mei de opsje ‘Misbrûk melde’.

Mear ynfo

Dizze konversaasje is argivearre. Stel in nije fraach as jo help nedich hawwe.

Why doesn't the alt tag work in firefox to open a description of an image on mouseover

  • 5 antwurd
  • 13 hawwe dit probleem
  • 1 werjefte
  • Lêste antwurd fan cor-el

more options

In IE, when I roll my mosue over an image, it gives a tooltip description of the image contained in the html alt tag. Why doesn't this work in Firefox?

In IE, when I roll my mosue over an image, it gives a tooltip description of the image contained in the html alt tag. Why doesn't this work in Firefox?

Alle antwurden (5)

more options

The "alt" tag is meant to show text when the image isn't loaded, the "title" tag is meant for a description of an image on cursor hover. IE has been doing that wrong for many years, where Firefox follows W3C standards. A properly coded webpage should have both "alt" and "title" tags.

more options

It is not so much IE was doing it wrong they were using ALT before there was a standard for that and before there was a TITLE on images but IE9 does show title

If titles do not show up on tooltips

Bewurke troch David McRitchie op

more options

Keazen oplossing

more options

Unfortunately, after checking into the W3C, the alt attribute in the IMG tag is required to pass XHTML specifications, but the title attribute by itself in an IMG tag will not pass. Doesn't it make more sense to use one tag (that passes XHTML) for "alternative text" than to have to use two that across browsers does the same?

more options

You need to use both.

The alt text is used if the image can't be displayed and the title text is used to display a tooltip on hover.
Both have different purposes.