srcset and sizes

Several widths of the same image. The browser downloads only what fits.

HTML · srcset and sizesIntermediate
<img
  src="photo-800.jpg"
  srcset="photo-400.jpg 400w, photo-800.jpg 800w, photo-1600.jpg 1600w"
  sizes="(min-width: 1000px) 33vw, (min-width: 600px) 50vw, 100vw"
  alt="A mountain lake at sunrise"
  width="800" height="533" loading="lazy">
srcsetsizesperformanceresponsive images