Skip to content
BENIBIX Learn

Scalable Vector Graphics (SVG)

Design👁️ Visual CommunicationDigital Images

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

SVG is the vector image format of the web. An SVG file is plain text that lists shapes, lines and colors. Browsers draw it sharp at any size, and the file is often tiny. Because it is text, code can change its colors or animate its parts. It is the usual format for icons and logos on websites.

Example code

xml
<svg viewBox="0 0 24 24" width="24" height="24">
  <circle cx="12" cy="12" r="10" fill="currentColor"/>
</svg>
A whole icon in three lines. The circle takes the color of the text around it.

Common mistake

Pasting an SVG from a design tool with no cleanup. It can carry a lot of junk that bloats the file.

Key takeaways

  1. 1
    Vectors for the web. Browsers draw it natively.
  2. 2
    It is text. Code can style and animate it.
  3. 3
    Small and sharp. Ideal for icons and logos.

Learn it properly