SVG - SPLessons

Chapter 2

SVG Overview

SVG Overview

This chapter demonstrates about the SVG Overview which contains creating the SVG images and using those images in appropriate manner. By using SVG user can also create the animated images following are the concepts covered in this chapter.

  • How to create SVG?
  • How to SVGs

How to create SVG?

SVG can be created by using two methods. those are Hand Coding or Popular vector image editor software’s. Many vector image editors are available for the users some of them are listed below.

  • Inkscape
  • Adobe Illustrator

In above software’s Adobe Illustrator is the most commonly used software.


Inkspace is one of the best software to design the SVG images. User can get the Inkspace from the official website of the Inkscape. Follow below procedure for downloading and installing Inkscape.

In order to Download the Inkscape user need to visit the official web site, now click the download menu and select the appropriate option from the drop down menu as shown in below image.

After completing the Downloading process click on the Run to install the setup. Now a window get explored named as Welcome to Inkscape setup, click the Next button to continue the installation process as shown in below image.

A window get explored named as End-User Licence Agreement in which user need to accept the licence agreement and click on the Next button to proceed the installation process as shown in below image.

Now user need to choose the set up Type Click on the appropriate setup to install as shown in below image.

A window get explored named as Ready to install Inkscape then click on the  Install button to start the installation process as show in below image.

Now a window get explored with Installation status as shown in below image.

Finally user will get a window which is completed the Inkscape setup, click on the Finish button to complete the process.

Adobe Illustrator

Adobe Illustrator is one of the best software to design the SVG images. In order to use the software user need to download and install. By using the Illustrator user can get the SVG code. The steps below demonstrates SVG coding with Ai (Adobe Illustrator).

Open the Adobe Illustrator then user will get a new window named as New Document now enter the name of the document and proceed by clicking OK button as shown in below image.

Now user will get Adobe Illustrator Dashboard with an empty Document where user can design the SVG images. The image below display the SVG Dashboard.
After designing the Image user need to save the image by using the Save As option which is provided in file menu as shown in below image.

Now user will get a dialogue box with a File Name, enter the file name and select the File Type and proceed by clicking the Save Button as shown below image.

Now a dialogue box get explored named as SVG Options which consist of some properties like Fonts, Options and SVG Code select the appropriate property and proceed by clicking OK button as shown below image.

By clicking on SVG Code user will get a code as shown below.

<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 20.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0)  -->
<svg version="1.1" id="Layer_1" xmlns="" xmlns:xlink="" x="0px" y="0px"
	 viewBox="0 0 612 792" style="enable-background:new 0 0 612 792;" xml:space="preserve">
<lt;style type="text/css">
<circle class="st0" cx="331.8" cy="428.9" r="221.8"/>
	<path class="st1" d="M63.5,566c3.3,4.1,7.9,7.3,12.9,7.3c7.4,0,11.8-7.7,11.8-19c0-10.2-3-16.3-10.6-21.9
	<path class="st1" d="M105.3,529.7c0-10.2-0.2-18.5-0.3-26h6.5l0.4,13.7h0.2c2.9-9.7,7.8-15.3,14.4-15.3c9.9,0,17.2,16.3,17.2,40.4
		c0,28.7-8.9,42.9-18.5,42.9c-5.3,0-10-4.6-12.4-12.5h-0.2v43.3h-7.3V529.7z M112.6,551c0,2.1,0.1,4.1,0.3,5.9
	&amp;amp;lt;path class="st1" d="M152.9,466.4h7.3v117h-7.3V466.4z"/>
	<path class="st1" d="M176.7,546.2c0.2,19.6,6.4,27.7,13.9,27.7c5.3,0,8.5-1.8,11.2-4.1l1.3,10.4c-2.6,2.3-7.1,5.1-13.5,5.1
		c-12.4,0-19.9-16.3-19.9-40.4s7.2-42.9,19-42.9c13.3,0,16.7,22.7,16.7,37.4c0,3-0.1,5.1-0.3,6.8H176.7z M198.2,535.8
	<path class="st1" d="M213.4,568.8c2.3,2.6,6.1,5.6,9.8,5.6c5.3,0,7.8-5.1,7.8-11.9c0-6.9-2.1-10.5-7.4-14.5
	&amp;amp;lt;path class="st1" d="M246.5,568.8c2.3,2.6,6.1,5.6,9.8,5.6c5.3,0,7.8-5.1,7.8-11.9c0-6.9-2.1-10.5-7.4-14.5
	<path class="st1" d="M317.1,542.9c0,29.5-10.4,42.4-20.1,42.4c-10.9,0-19.4-15.8-19.4-41c0-26.5,8.9-42.2,20-42.2
		C309.3,502,317.1,518.7,317.1,542.9z M285.1,543.7c0,17.5,5,30.7,12.2,30.7c7,0,12.3-13,12.3-31c0-13.5-3.4-30.5-12.1-30.5
	<path class="st1" d="M326.4,525.3c0-8.4-0.1-15-0.3-21.6h6.5l0.4,13.2h0.2c2-7.4,6.7-14.8,13.4-14.8c5.6,0,14.3,6.6,14.3,34v47.5
	<path class="st1" d="M371.7,568.8c2.3,2.6,6.1,5.6,9.8,5.6c5.3,0,7.8-5.1,7.8-11.9c0-6.9-2.1-10.5-7.4-14.5


The code below demonstrates the basic SVG.

	<title>SVG Image</title>
		<h1>Sample SVG Image</h1>      
		<svg width="100" height="100">
			<circle cx="50" cy="50" r="40" stroke="red" stroke-width="2" fill="blue" />

By running the above code in a preferred browser then user will get the output as shown below.


  • SVG Overview – By using Adobe Illustrator user can get the SVG code.
  • SVG Overview – SVG supported by all the image formats.
  • SVG Overview – Adobe Illustrator is the most used software for SVG.