How to use SVG in html
- Started
- Last post
- 9 Responses
- Raybandana
Hi there,
Can you simply embed SVG files inside on html and have them display?
Or is there a certain kind of plug in or javascript that need to be installed?
I would like to know how to display SVG file online!
Thanks very much
- 20020
Some good links here
- Raybandana0
or better yet - how do I do this?
- Raybandana0
never mind - i figured it out. Thanks 2002. I wil always remember you.
- 20020
var r = Raphael("holder", 600, 540); //"holder" is the id of an empty div in html file
r.image("lion.svg", 140, 140, 320, 240);// r.image(src,x,y,width,height)
- 20020
No wait dont go !!!
- Raybandana0
Are SVG files cross browser compatible? Why doesn't the entire internet use this? Vector web! ? baD?
- IE9 was the first version if IE to support svg without a hack. Big reason why its not as widely used today.IRNlun6
- "of"IRNlun6
- ahhh thanks!Raybandana
- 20020
SVG is not cross browser compatible.
It is slow. Takes up a lot of resources.
Canvas on the other hand...
- wouldn't it be faster because its just reading numbers? and what do you mean takes up resources? what resources?Raybandana
- Raybandana0
what is canvas?
- 20020