## What should you use while web designing SVG or JPEG/GIF?

### Solution

There are several advantages of using SVG over JPEG/GIF which is listed below:

• As we all know SVG graphics are created using mathematical formula which means it requires less data and time while loading the web page and SVG consume less bandwidth as compared to JPEG/GIF.
• SVG images are rendered by the browser and can be changed programmatically which provides the capability making them especially suited for data-driven applications, such as charts. Example: Google Analytics, Google Webmasters and other data-driven application use it.
• The source file for an SVG image is a text-based file, so is accessible/readable to search engine.