3 ms·
Yes, for inline SVGs, putting its text alternative in its <title> element is well-supported. See Pattern #5 in this excellent article [0] by Carie Fisher. That
by extra88 4y ago
Yes, for inline SVGs, putting its text alternative in its <title> element is well-supported. See Pattern #5 in this excellent article [0] by Carie Fisher.
That's a separate issue from ensuring an inline SVG is still visible regardless of a site's dark or light mode or visible when a user uses their device's Contrast theme (aka `forced-color`).
[0] https://www.smashingmagazine.com/2021/05/accessible-svg-patterns-comparison/ https://www.smashingmagazine.com/2021/05/accessible-svg-patt...
- bmelton 4y agoThank you