HTML Diff
0 added 0 removed
Original 2026-01-01
Modified 2026-03-09
1 <p>SVG is a vector graphics format. Unlike raster graphics (such as PNG, GIF, and JPEG), SVG can be stretched and shrunk without loss of quality. In other words, these types of images will be equally clear on both standard resolution and retina screens.</p>
1 <p>SVG is a vector graphics format. Unlike raster graphics (such as PNG, GIF, and JPEG), SVG can be stretched and shrunk without loss of quality. In other words, these types of images will be equally clear on both standard resolution and retina screens.</p>
2 <p>Another advantage of SVG is its human-readable code: you can not only read it, but also write it manually as well. You can open a file and edit it without using a graphics editor, meaning that you can write a simple image yourself.</p>
2 <p>Another advantage of SVG is its human-readable code: you can not only read it, but also write it manually as well. You can open a file and edit it without using a graphics editor, meaning that you can write a simple image yourself.</p>
3 <p>In addition, SVG elements can be styled with CSS, and you can add interactivity to them with JavaScript. In addition, SVG is also<a>reasonably well supported</a>by all modern browsers, and you can start actively using it today.</p>
3 <p>In addition, SVG elements can be styled with CSS, and you can add interactivity to them with JavaScript. In addition, SVG is also<a>reasonably well supported</a>by all modern browsers, and you can start actively using it today.</p>
4 <p>Let’s learn a little bit more about it. Here’s a simple code example:</p>
4 <p>Let’s learn a little bit more about it. Here’s a simple code example:</p>
5 &lt;svg&gt; &lt;circle r="50" cx="50%" cy="50%" fill="yellowgreen"/&gt; &lt;/svg&gt;<p>The SVG element is inserted using the svg tag. The rest of the content is nested inside of this tag, including shapes, images, or text.</p>
5 &lt;svg&gt; &lt;circle r="50" cx="50%" cy="50%" fill="yellowgreen"/&gt; &lt;/svg&gt;<p>The SVG element is inserted using the svg tag. The rest of the content is nested inside of this tag, including shapes, images, or text.</p>
6 <p>The content in this example is a circle (circle) that has been colored green (fill="yellowgreen"). This is what this code will look like in a browser:</p>
6 <p>The content in this example is a circle (circle) that has been colored green (fill="yellowgreen"). This is what this code will look like in a browser:</p>
7 <p>SVG can be embedded in several different ways. We will examine them in more detail later, but for now we will embed the file directly into the page code.</p>
7 <p>SVG can be embedded in several different ways. We will examine them in more detail later, but for now we will embed the file directly into the page code.</p>