Web logos, icons, and illustrations use SVG or PNG. Choosing correctly affects file size, quality, and performance.
SVG
Uses math to describe shapes scaling to any size without quality loss. Files for simple graphics are often under 5KB. Can be styled with CSS and animated with JavaScript. Ideal for logos, icons, and geometric graphics.
PNG
Stores pixel grids with lossless compression and transparency. Excels at photographs and detailed illustrations with many colors. Produces consistent results across all browsers.
Choosing
SVG for scalable graphics with solid colors and clean lines. PNG for complex photographic images needing transparency. Compare actual file sizes for your specific graphics.