Adding an SVG with HTML5
Few ways to use an svg in your page: Using the <object> tag Just embed an svg into the page by requesting it as a resource from the server and embedding it into the page as a document. Example <object type="image/svg+xml" data="images/logo.svg" id="logo"></object> Known issueOn being a different document (like using an iframe) your styles won't reach it. That may not be an issue to you but if you are planning to adapt its size or filling colors contextually or reactively then it can be. To sort it out you have different solutions, from accessing the element on runtime with javascript and override its styles directly to attach a link inside the SVG file that loads the required stylesheet file along the doc. Still, contextual styling can be a problem.…