Different images for different screens

The browser picks the best file.

HTML · Different images for different screensIntermediate
<picture>
  <source media="(min-width: 900px)" srcset="hero-wide.avif 1600w, hero-wide.webp 1600w" sizes="100vw">
  <source media="(max-width: 899px)" srcset="hero-small.webp">
  <img src="hero-small.jpg" alt="Our team at work" width="800" height="500" loading="lazy" decoding="async">
</picture>
picturesourcesrcsetmedia