Also called: srcset, picture, sizes, WebP, AVIF
In plain English
The browser picks the best file from srcset based on the screen and the sizes hint. <picture> lets you offer modern formats (AVIF, WebP) with a fallback.
Example
With srcset, phones download the 800-pixel photo instead of the 2400-pixel one.
In code
<picture>
<source type="image/avif" srcset="hero-800.avif 800w, hero-1600.avif 1600w">
<img src="hero-1600.jpg" srcset="hero-800.jpg 800w, hero-1600.jpg 1600w"
sizes="(max-width: 700px) 100vw, 50vw" alt="Rice terraces">
</picture>
Learn more
Related terms
Added 2026-11-30 · Last reviewed 2026-11-30