- do you need to at all?
title
attr = can’t style. How accessible is it?
data-tooltip
= could use CSS content attr() to show.
- Also could put HTML in there and let JS do stuff.
data-reference-to-tooltip
- Could be a selector to HTML elsewhere in document
- How else could you do HTML tooltips?
- Link to HTML partial on disk... ajax?
- Grab'n'go solutions
- jQuery / Vue / React / Houdini
- Deal with stuff like edge-of-screen-or-container awareness
https://codepen.io/knyttneve/pen/dLemVv
https://adamsilver.io/articles/the-problem-with-tooltips-and-what-to-do-instead/?ref=heydesigner