Skip to content

Comment on Implementing Web accessibility guidelines for nondisabled users (2016)parent

Comments

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

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.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.