How can I save svg code as a .svg image? [closed]

Solution 1:

Just had to save it in a text file and give it a .svg extension.