HTML & CSS · Middle · Question 49 of 75

Which image format usually gives the best compression for photos in modern browsers?

Explanation

AVIF and WebP weigh noticeably less than JPEG at the same quality. Lossless PNG is for graphics with transparency and sharp edges, but it's huge for photos. BMP isn't compressed at all. SVG is better for icons and logos. Fallbacks are done with <picture> or automatically by a CDN/optimizer (e.g. next/image).

Further reading

Problem with a question

HTML & CSS · Middle · question 49

Test yourself

Take the HTML & CSS · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz