3 ms·
Even if that was consistent, the other reasons are not addressed. And the spec for the title attribute is for "advisory information", which isn't necessarily t
by forestrywat 2mo ago
Even if that was consistent, the other reasons are not addressed.
And the spec for the title attribute is for "advisory information", which isn't necessarily the same as descriptions. A title attribute could be used to give an image a credit, for example.
But the W3C recommends against relying on the title attribute for converting information:
* Relying on the title attribute is currently discouraged as many user agents do not expose the attribute in an accessible manner as required by this specification (e.g., requiring a pointing device such as a mouse to cause a tooltip to appear, which excludes keyboard-only users and touch-only users, such as anyone with a modern phone or tablet).*
You could argue that all the user agents across all mobile and desktop applications and browsers should present title information consistently even when there is no pointing device. But, that's unlikely to happen.
So you have a choice, leave out users with disabilities because "it's all the world's software that could change" or add a labelledby attribute and get on with one's day.