Protect your JavaScript with Encrypted Authorship Watermarking and Secure Delivery.
Definition: Scalable Vector Graphics for resolution-independent graphics.
Scalable Vector Graphics (SVG) is an XML-based markup language for describing two-dimensional vector graphics. SVG was developed by the World Wide Web Consortium (W3C) starting in 1999 and became a W3C recommendation in 2001. It allows for the creation of complex graphics and graphical applications, supporting interactivity and animation.
SVG is built on XML, which means that the graphics are defined in a text format that can be easily read and modified. The core concepts include:
SVG offers numerous features, including:
SVG is natively supported by all modern web browsers, so no installation is required. To start using SVG, you can embed SVG code directly into HTML or link to an external SVG file.
<svg width="100" height="100">
<circle cx="50" cy="50" r="40" stroke="black" stroke-width="3" fill="red" />
</svg>
Here is a simple example of an SVG graphic:
<svg width="200" height="200" xmlns="http://www.w3.org/2000/svg">
<rect x="10" y="10" width="100" height="100" fill="blue" />
<text x="20" y="60" fill="white">Hello SVG</text>
</svg>
The SVG community is active, with many resources available online. Libraries like D3.js and SVG.js are popular for creating complex visualizations and animations.
SVG is often compared to other graphics formats like PNG, JPEG, and Canvas. Unlike raster images (PNG, JPEG), SVG is resolution-independent and can be easily manipulated via code. Compared to the HTML5 Canvas, SVG is more suitable for static images and diagrams, while Canvas is better for dynamic, pixel-based rendering.
Advanced usage of SVG includes:
SVG continues to evolve with improvements in browser support and new features like better integration with CSS and JavaScript. Trends include increased use in web applications and enhanced tooling for design and development.
Views: 90 – Last updated: Three days ago: Sunday 15-02-2026