HTML img tag: title attribute vs. alt attribute?

后端 未结 11 783
悲&欢浪女
悲&欢浪女 2020-12-07 12:01

I was browsing Amazon and I noticed that when searching \"1TB\" if you hover the mouse cursor over the stars rating image, you only see the score if using IE. If you are u

11条回答
  •  孤街浪徒
    2020-12-07 12:31

    In my opinion should the alt text always describe what is visible in the picture, for the case that the image is not displayed.

    alt = text [CS] For user agents that cannot display images, forms, or applets, this attribute specifies alternate text. The language of the alternate text is specified by the lang attribute.

    w3.org

提交回复
热议问题