converting svg code to svg file

I have a svg image that looks like this:   http://jsfiddle.net/sa4J4/

This is the code for my svg image.

<svg width="100" height="100">
  <circle cx="50" cy="50" r="40" stroke="green" stroke-width="4" fill="yellow" />
</svg>

Open in new window


How do I convert this svg code to a file with a .svg file extension?

So for example,  I want to save it to a svg file called YellowCircle.svg


See I want to use this svg image on a web page but I don't want to use the code I just want to use the file.

See on my web page I want to use it like this:

 <a href="http://www.google.com"><img src="images/YellowCircle.svg"></a> 

Open in new window

LVL 1
maqskywalkerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dan CraciunIT ConsultantCommented:
Save your code as a new html page, then open it in IE or whatever browser you fancy, right click on the svg and choose "Save picture as". Give it a name and enjoy your new svg.

HTH,
Dan
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Graphics Software

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.