How to use .svg files in a webpage?

I want to know how can one actually use a .svg file In a web page?


See svgweb quickstart and the svgweb project homepage for something that works in all browsers including IE (requires flash plugin).

There are many ways to include an existing svg file:

  • <img src="your.svg"/>
  • <object data="your.svg"/>
  • <iframe src="your.svg"/>
  • <embed src="your.svg"/>
  • <div style="background:url(your.svg)">...</div>

Source : Link , Question Author : Parastar , Answer Author : Erik Dahlström

Leave a Comment