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!

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

The "alt tag" never appears for the pictures!!!??

  • 2 回覆
  • 7 有這個問題
  • 4 次檢視
  • 最近回覆由 mazioon

more options

I am a web-designer, and whenever i trying to use the alt tag for the pictures it never appears. The "alt tag" is a part of the HTML language, and the one writes it to make sure that the visitor of the site will see or understand the content of the pics, even if he has a very bad connection. like so: Every thing goes right with the width or the height, but when it comes with the "alt" it never appears. I tried it on IE and Opera, and it works. Plz if you know how can i solve this problem send me to der.dolmetscher@yahoo.com IT'S URGENT alt tag doesn't work http://www.w3schools.com/html/tryit.asp?filename=tryhtml_images2 I attached a link for "W3SCHOOL" put ur cursor over any pic and you'll find no writing

'''I am a web-designer''', and whenever i trying to use the '''alt tag''' for the pictures it never appears. ''The "alt tag" is a part of the HTML language'', and the one writes it to make sure that the visitor of the site will see or understand the content of the pics, even if he has a very bad connection. like so: <img src="'''the image'''" alt="'''the name or the theme of the pic'' /> Every thing goes right with the width or the height, but when it comes with the "alt" it never appears. I tried it on IE and Opera, and it works. Plz if you know how can i solve this problem send me to der.dolmetscher@yahoo.com IT'S URGENT [http://the alt tag doesn't work http://www.w3schools.com/html/tryit.asp?filename=tryhtml_images2] '''''I attached a link for "W3SCHOOL" put ur cursor over any pic and you'll find no writing'''''

被選擇的解決方法

Alt is not for tooltips, that is misbehavior from Internet Explorer. To show a tooltip you must use the title attribute. In fact, in order to create a truly web standards compliant webpages, you must specify both. Alt is shown if there is no image available, title is for the tooltip.
See https://developer.mozilla.org/en/Mozilla_Web_Developer_FAQ

USE: alt="Google Chrome" width="33" height="32" title="my tooltip"
從原來的回覆中察看解決方案 👍 1

所有回覆 (2)

more options

選擇的解決方法

Alt is not for tooltips, that is misbehavior from Internet Explorer. To show a tooltip you must use the title attribute. In fact, in order to create a truly web standards compliant webpages, you must specify both. Alt is shown if there is no image available, title is for the tooltip.
See https://developer.mozilla.org/en/Mozilla_Web_Developer_FAQ

USE: alt="Google Chrome" width="33" height="32" title="my tooltip"
more options

Thanksss it helped alot!!!