Hacker News new | ask | show | jobs
by sefrost 1608 days ago
It's the title attribute on an image element that generates the tooltip. Did alt do that previously or was it always title?

MDN says not to put the same text in title and alt, as some screenreaders will read both.

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Im...

1 comments

IIRC very early on browsers would turn alt into tooltips, and then that functionality was split out into title. I understand why but I'm still bitter about it since they don't want you to use both.