Can I use alt and title properties within SVG elements?

As far as I am aware, alt text cannot be used on SVGs. You are right in using <title> tags, but you can also add in <desc> to add more information.

Take a look at this answer here: https://stackoverflow.com/a/4756461/3909886 for a more detailed look into this issue.


title as an attribute has no meaning in SVG, its equivalent as you point out in the question is the <title> element.

alt as an attribute also has no meaning, the SVG equivalent is the <desc> element.