SVG Tutorial Read Courses Practice Improve Improve Improve Like Article Like Save Article Save Report issue Report SVG stands for Scalable Vector Graphic. It can be used to make graphics and animations like in HTML canvas. It is a type of vector graphic that may be scaled up or down. SVG is a web standard for vector-based graphics. It defines vector-based graphics in XML format. SVG graphics do NOT lose any quality if they are zoomed or resized. SVG Tutorial provides complete guide to learn SVG from beginner to advanced level. What is SVG? SVG can be used with the help of <svg> element within the HTML file. It can used as an inline or an external file or can be implemented with the <object> Tag. SVG can be used for setting the Background Image. SVG facilitates drawing different geometrical shapes, such as rectangles, circles, ellipses, lines, polygons, blur effects, etc. The following list provides a comprehensive guide for drawing on the SVG. SVG Tutorial Articles Basics SVG Introduction HTML SVG-Basics SVG Full Form SVG in HTML SVG Elements <a> <animate> <animateMotion> <animateTransform> <circle> <clipPath> <defs> <desc> <Ellipse> <feBlend> <feComponentTransfer> <feConvolveMatrix> <feDiffuseLighting> <feDisplacementMap> <feDropShadow> <feFlood> <feGaussianBlur> <feImage> <feMerge> <feMergeNode> <feOffset> <fePointLight> <feSpecularLighting> <feSpotLight> <feTile> <feTurbulence> <filter> <foreignObject> <g> <hatch> <image> <Line> <marker> <mask> <mpath> <path> <pattern> <polygon> <polyline> <rect> <script> <set> <stop> <style> <switch> <symbol> <text> <textPath> <title> <tspan> <use> <view> SVG Property AElement.href prefix namespaceURI DOMStringList.length ownerElement TextPathElement.startOffset localName Event.returnValue Event.isTrusted Event.currentTarget Event.bubbles Event.composed Event.defaultPrevented Element.outerHTML Document.doctype Document.head Document.body Document.image Document.timeline Document.scripts Document.hidden Document.documentURI Document.documentElement LineElement.x2 LineElement.y2 LineElement.x1 LineElement.y1 Element.part Element.id Element.attributes Element.classList Element.className Element.innerHTML LinearGradientElement.x2 LinearGradientElement.y1 LinearGradientElement.y2 LinearGradientElement.x1 EllipseElement.ry EllipseElement.rx EllipseElement.cy EllipseElement.cx RectElement.y RectElement.x RectElement.ry RectElement.width RectElement.height RectElement.rx CircleElement.r CircleElement.cy CircleElement.cx ScriptElement.type Stroke SpecularLighting.specularExponent SpecularLighting.kernelUnitLengthY UseElement.height UseElement.width UseElement.x UseElement.y window.closed window.crypto window.history window.toolbar window.isSecureContext window.statusbar window.document window.event window.performance window.menubar window.scrollbars FEBlendElement.mode FEBlendElement.in2 FEBlendElement.in1 FEDisplacementMap.scale FEDisplacementMap.in2 FEDisplacementMap.in1 FEDisplacementMap.xChannelSelector FEDisplacementMap.yChannelSelector FEDropShadow.dx FEDropShadow.dy FEDropShadow.in1 FEDropShadow.stdDeviationX FEDropShadow.stdDeviationY FEGaussionBlur.in1 FEGaussionBlur.stdDeviationX FEGaussionBlur.stdDeviationY FEMergeNode.in1 FEOffset.in1 FEOffset.dx FEOffset.dy FESpotLightElement.z FESpotLightElement.x FESpotLightElement.y FESpotLightElement.pointsAtX FESpotLightElement.limitingConeAngle FESpecularLighting.in1 FESpecularLighting.surfaceScale FESpecularLighting.specularConstant FESpecularLighting.kernelUnitLengthX FESpotLightElement.pointsAtY FESpotLightElement.pointsAtZ SVG Attributes by cx cy fill fill-opacity filter flood-color flood-opacity font-size font-size-adjust font-style visibility from fr height keyPoints keyTimes lengthAdjust letter-spacing lighting-color markerHeight markerWidth mask media numOctaves opacity operator orient path pathLength patternContentUnits patternTransform patternUnits pointer-events points pointsAtX pointsAtY pointsAtZ r radius repeatCount repeatDur restart rotate rx ry scale seed shape-rendering startoffset stdDeviation stitchTiles stop-color stop-opacity stroke stroke-dasharray stroke-linecap stroke-opacity stroke-width style surfaceScale systemLanguage tabindex tableValues text-anchor text-decoration text-rendering textLength to transform type vector-effect visibility width word-spacing x x1 x2 xChannelSelector xml:lang y y1 y2 yChannelSelector z Reason to Learn SVG SVG facilitates to create the dynamic graphics that enhances the interactivity. This dynamic graphics feature is beneficial in the case of data visualizations, interactive maps, etc. SVG images have smaller file size as compared to the raster image formats, like JPEG or PNG, for the simple graphics. For this, this contributes to faster loading of the websites. SVG is compatible with most of the modern browsers, which ensures the consistent rendering accross various browsers. HTML & CSS can be seamlessly integrated with SVG, which allows to create the complex & responsive design layouts. SVG is versatile, provides the developer to use the various types of graphics, including icons, logos, charts, maps, etc. Advantages of SVG The following are the benefits of using the SVG: SVG images can be created and edited with any text editor. It can be searched, indexed, scripted, and compressed. SVG images are scalable. It can be printed with high quality at any resolution. Every element and every attribute in SVG files can be animated. FAQ’s on HTML SVG Q1. What is SVG in HTML? Ans: SVG is a web standard for vector-based graphics in the form of XML format. It helps to create the graphics which are scalable and resolution-independent. Q2. Why use SVG? Ans: SVG facilitates to create the scalable, resolution-independent graphics maintaining the quality across various modern Browsers & different screen-width devices. Q3. What are the pre-requisite knowledge required for learning SVG ? Ans: For Learning the SVG Basics, the knowledge of HTML and CSS can be helpful to understand. Q4. What are the benefits of using SVG over raster images? Ans: SVG facilitatess the scalability without loss of image quality, can have the smaller file sizes for simple graphics, along with supporting the interactivity and animation, that helps to make the responsive web design. Q5. Can SVG be used for accessibility? Ans: Yes, SVG can be used to the accessible by adding the text descriptions or labels for elements within the graphic. For this, the content can be accessible for the users having the disabilities which uses the screen readers or different assistive technologies. Learn to code easily with our course Coding for Everyone. This course is accessible and designed for everyone, even if you're new to coding. Start today and join millions on a journey to improve your skills!Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out - check it out now! Commit to GfG's Three-90 Challenge! Purchase a course, complete 90% in 90 days, and save 90% cost click here to explore. Last Updated : 11 Jan, 2024 Like Article Save Article Next SVG Introduction Share your thoughts in the comments Add Your Comment Please Login to comment...