为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

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!!!