over 8 years ago
Hello readers, Today in my blog I will discuss Scaleable Vector Graphics Images.
So basically, SVG is a web format in which the content developers can create a 2-D graphics using XML.
The three basic rules of XML and SVG syntax are as follows :-
SVG Icons :- The SVG Icons are basically SVG images that are used inside various web applications or mobile applications.
These Icons can be used as logos inside a web page.
Advantages of SVG Icons :- The best advantage of using SVG Icons is that we can easily change its size and can display them in an application where ever needed.
SVG Coordinate System :- The SVG Coordinate System starts from upper left corner such that the point x=0 and y=0.
Now for creating the SVG Images we need SVG Elements below is the list of few elements such as circle, ellipse, clipPath, filter, line, pattern, path, polygon, gradient, llinear gradient rect, text, symbol, image etc.
So, the root element that is used in SVG Images is the <svg> element. Below is the syntax for it :-
Here is an example showing the use of SVG :-
<svg xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink">
<rect x="10" y="10" height="100" width="100"
style="stroke:#ff0000; fill: #0000ff"/>
</svg>
<svg xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink">
<rect x="10" y="10" height="100" width="100"
style="stroke:#ff0000; fill: #0000ff"/>
</svg>
In this example, I have created a simple rectangle with 100px height and width. To style it I have used filter and stroke.
For creating the SVG Images there are know various software introduced which can help the web developer for making SVG Images. Below is the list of these softwares :-
The SVG Images works overall modern browsers such as on Firefox 7.0.1, Chrome 15.0, Internet Explorer 9.0 , Safari 5.1.1.
0 Comment(s)