Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

본 사이트는 여러분의 사용자 경험을 개선하기 위해 유지 보수를 진행하는 동안 기능이 제한됩니다. 도움말로 문제가 해결되지 않고 질문을 하고 싶다면 Twitter의 @FirefoxSupport 및 Reddit의 /r/firefox 채널을 활용하세요.

Mozilla 도움말 검색

고객 지원 사기를 피하세요. 저희는 여러분께 절대로 전화를 걸거나 문자를 보내거나 개인 정보를 공유하도록 요청하지 않습니다. "악용 사례 신고"옵션을 사용하여 의심스러운 활동을 신고해 주세요.

자세히 살펴보기

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

  • 5 답장
  • 13 이 문제를 만남
  • 1 보기
  • 최종 답변자: 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?

모든 댓글 (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

글쓴이 David McRitchie 수정일시

more options

선택된 해결법

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.