Embedding SVG

I wanted to use SVG for a report on one of our new projects so when creating the XHTML wireframe/templates, I included some sample SVG graphs, I used the embed tag which worked well but was invalid XHTML strict. I had a look around but everywhere used the embed tag.

[code lang="xml"]

[/code]

I thought about and decided to use the object tag,

[code lang="xml"]
type="image/svg+xml" data="../../orgadmin/piechart.svg"
width="400" height="450" >
Pie Chart

[/code]

Works perfectly and is perfectly valid :).. Firefox 1.5 SVG support works well but lacks some of the zoom (and other) features of Adobe SVG plugin. I can only presume that it will get better with time, everything else they do does.

One Comment

  1. Posted December 22, 2005 at 6:53 pm | Permalink

    Nice! See my blog for other tips regarding embedding SVG…

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*