HTML img tag: title attribute vs. alt attribute?

后端 未结 11 768
悲&欢浪女
悲&欢浪女 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条回答
  •  萌比男神i
    2020-12-07 12:25

    I'd go for both. Title will show a nice tooltip in all browsers and alt will give a description when browsing in a browser with no images.

    That said, I'd love to see some stats of how many "surfers" out there going to a "store" to browse merchandise actually have images turned off or are using a browser that doesn't support images. I think the days where 90% of the population is using a 28k modem to connect to the InterWeb is looooong over.

提交回复
热议问题