How does a .svg work?

If you have a vector picture, it can be displayed at any size.

I really don't know anything about the svg file format. I would start with Wikipedia, which should point to the official standard. If you come across things you don't understand, I could look at them with you and try to help.