Updated on 26-Jun-2020 06:36:09
322 Views
To add SVG files, you can use , or element in HTML. Choose any one of them according to your requirement. Here’s how you can add SVG, elementUse the tag for images without interaction.The disadvantage is you cannot manipulate images with JavaScript. elementThe element is used to define an embedded object within an HTML document. Use it to embed multimedia like audio, video, flash, etc in the web page.
Your browser does not support SVG
elementThe tag wasn’t part of the HTML 4 specification and is new in HTML5. It validates in an HTML5 page.