Answers for "how to use SVG"

3

SVG Tutorial

<html>
<body>

<h1>My first SVG</h1>

<svg width="100" height="100">
  <circle cx="50" cy="50" r="40" stroke="green" stroke-width="4" fill="yellow" />
</svg>

</body>
</html>
Posted by: Guest on February-27-2021
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
8

using svg in html

<img src="image.svg" />
Posted by: Guest on July-28-2020

Browse Popular Code Answers by Language