Hej
How do I add and ALT tag to a svg, particularly in Source?
I presume you are referring to inline SVGs (XML code) in which case use a <title> </title>
tag and optionally a <desc> </desc>
in the SVG code
examples on this page:
https://www.w3.org/TR/SVG11/struct.html#DescriptionAndTitleElements
4 Likes
Yes inline svgs, I would never have thought of putting it directly in the code. Thank you very much, highly appreciated :-)
My pleasure.
Inline SVG’s are more like HTML than an image therefore the only mechanism you have is via the code.
3 Likes