Convenience function for cat
-ing out HTML markup for
an SVG image, using <embed>
.
1 |
file |
path to the SVG file you want to embed |
width |
width (in pixels) of the SVG file (or, more accurately, canvas in which that file is displayed) |
height |
height (in pixels) of the SVG file (or, more accurately, canvas in which that file is displayed) |
class |
class passed to the |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.