Photos go in a lossy format (JPEG, WebP, AVIF); logos and screenshots go in a lossless one (PNG, lossless WebP). Newer formats tend to be smaller, but you have to weigh support and encoding time, so keep the most widely supported file as the fallback.
The principles behind image codecs were covered in Chapter 4. This chapter doesn't repeat them; it focuses on what to pick when you actually put an image on a web page. One thing up front: the measurement articles on this site have only covered video (video codecs), and we have not measured the size or quality of image formats. So this chapter has no image numbers measured by this site, and the size comparisons between formats stay at the 'is known to' level of explanation given in Chapter 4.
Even if AVIF is smaller, encoding takes longer, and on an environment that doesn't support it, nothing shows up at all. The principle of this chapter is: always keep one file that opens almost everywhere, and layer the more efficient formats on top as an option. It's the same idea as the web embed recipe, where H.264 was the fallback for video.
A general claim like 'AVIF is X% smaller' varies with the type of photo. Just as the CRF result split widely from clip to clip for the same video (Why the same CRF gives different results), the surest approach for images is to convert one or two of your own photos and compare file size and visual quality. This site does not vouch for those numbers for images.
A channel that stores per-pixel transparency separately from color (RGB). PNG, WebP, and AVIF support it; JPEG does not.
Lossy shrinks the file by discarding information that's less noticeable; lossless compresses so the original can be restored exactly.
A more widely supported substitute file prepared for browsers that don't support the new format.
You're putting a company logo (flat color areas and lines, transparent background) on the web. What should you consider first?
Which statement matches this chapter's stance on size comparisons between image formats?