Is there a technical (dis)advantage to including SVG-code in a HTML-file versus embedding it with an <img> tag?
I'm not asking about personal preference or opinion, but factual differences on the technical level.
Browser compatibility would be an example. Caniuse.com tells me there is virtually no difference in that respect (SVG as img vs inline SVG code). But maybe there are other factors that I'm not aware of?
SVG as part of the HTML code:
<html>
...
<body>
...
<svg version="1.1" ... >
...
</svg>
...
</body>
</html>
SVG embedded as image:
<html>
...
<body>
...
<img src="image.svg" ... >
...
</body>
</html>