How to embed SVG in HTML? - SVG

How to perform embed SVG in HTML?



- SVG files are embedded into HTML documents by using <embed> , <object> and <iframe> tags.

- The <embed> tag is supported for all major browsers.

- The <embed> tag supports scripting.

- Adobe SVG view recommends to use the EMBED tag while embedding in HTML page.

- Note that the tag name is capitalized.

- Following is an example for <embed> tag:

<embed src="rectangle.svg" height="100" width="300" type="image/svg+xml" pluginspage="http://www.adobe.com/svg/viewer/install/" >
Post your comment