Answers for "using svg in img tag"

25

add svg to html

<!-- external svg -->
<img src="mySvgImage.svg" />

<!-- internal svg example -->
<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg">
  <rect width="100" height="100" x="50" y="50"/>
</svg>
Posted by: Guest on October-29-2020
4

html img svg

<img
    src="equilateral.svg"
    alt="un triangle aux trois côtés égaux"
    height="87px"
    width="100px" />
Posted by: Guest on December-30-2020
1

how to add an svg image to html

<body>

<img src="blabla.svg" alt="blabla_is_working">

</body>
Posted by: Guest on November-04-2020
0

img tag in htmlto svg graphic

<img id="facebook-logo" class="svg social-link" src="/images/logo-facebook.svg"/>
Posted by: Guest on July-22-2021

Browse Popular Code Answers by Language