Responsive Images

Responsive Images: Responsive Images with srcset and sizes, The Picture Element.

Updated

  1. Responsive Images with srcset and sizes (Journeyman): Offer the same photo in several widths with srcset, tell the browser how wide it will be shown with sizes, and let each phone, laptop and sharp screen download the file it needs.
  2. The Picture Element (Journeyman): Use picture and source to offer smaller AVIF and WebP files with a JPEG backup, and to show phones a tighter crop of a photo than big screens get.