👁️Scalable Vector Graphics (SVG)
Also known as SVG, SVG File
The web's vector image format. A text file of shapes that stays sharp.
Think of it like
It is like a drawing written as a list of steps. Any browser can follow the steps.
Example
A site swaps its PNG icons for SVG icons. They look crisp on every screen, and the files shrink.
Why it matters
Icons and logos in SVG stay sharp on every screen and load fast.
Definition
Example code
xml
<svg viewBox="0 0 24 24" width="24" height="24">
<circle cx="12" cy="12" r="10" fill="currentColor"/>
</svg>Common mistake
Key takeaways
- 1Vectors for the web. Browsers draw it natively.
- 2It is text. Code can style and animate it.
- 3Small and sharp. Ideal for icons and logos.