3 ms·
One of my pet peeves with the HTML title attribute is that it requires “hover and wait” to view the content as a tooltip. MDN [1] links to a wonderful guide [2]
by divbzero 6y ago
One of my pet peeves with the HTML title attribute is that it requires “hover and wait” to view the content as a tooltip. MDN [1] links to a wonderful guide [2] on how to avoid tooltips whenever possible and make them accessible if needed. For some reason, the accessible tooltips require custom implementation and is not the default browser behavior for the title attribute.
[1]: https://developer.mozilla.org/docs/Web/HTML/Global_attributes/title https://developer.mozilla.org/docs/Web/HTML/Global_attribute...
[2]: https://inclusive-components.design/tooltips-toggletips/ https://inclusive-components.design/tooltips-toggletips/