🔰SVG
Scalable Vector Graphics
<svg viewBox="0 0 100 100">
<rect x="10" y="10" width="100" height="100" />
<!-- and all the shapes you need! —>
</svg><img src="leaf-maple.svg">.svg-bg {
background-image: url(bg.svg); /* background image */
}Code Snippet
<!-- ⭐️
`width="0" height="0"` or
`display="none"`
prevent SVG from being rendered
-->
<svg width="0" height="0">
<!-- ⭐️ definitions to be used later -->
<defs>
<!-- ⭐️ `g` for group, much like `div` in HTML -->
<g id="xxx">
<path d="">
<path d="">
</g>
</defs>
<!-- ⭐️ SVG will NOT draw `symbol`, it's just a definition -->
<symbol id="twitter" viewBox="0 0 100 100">
<title>@CoolCompany on Twitter</title>
<path d="...">
</symbol>
<symbol id="codepen" viewBox="0 0 200 175">
<title>See Our CodePen Profile</title>
<path d="...">
<path d="...">
</symbol>
</svg>
<!-- ⭐️ this will draw an icon here. -->
<svg class="icon" viewBox="0 0 100 100">
<!-- `title` is for screen reader -->
<title>@CoolCompany on Twitter</title>
<!-- ⭐️ use icon with ID "twitter" in definitions -->
<use xlink:href="#twitter" />
</svg>Last updated