Questions and Answers
- What are the three main types of images used in HTML web pages?
- The three main types of images used in HTML web pages are JPEG, PNG, and SVG. A fourth popular image type is GIF.
- When would you use each type of the three images?
-
JPEG (or Joint Photographic Expert Group -- I didn't know this until today!) is best for photographs with many colors, it's smaller size is an advantage for web use.
PNG (or Portable Network Graphics) is best for images that require transparency or have text. It provides better compression without losing quality, it is, however larger in file size compared to JPEG.
SVG (or Scalable Vector Graphics) is ideal for logos, icons, and other graphics that need to be scaled without losing quality.
GIF (or Graphics Interchange Format) is used for simple animations and images with more limited color palettes.