Skip to content

Glossary: CSS Layout and Responsive Design

srcset, sizes, <picture>

Also written: srcset, sizes, picture, <picture>

`srcset` lists image files by width and `sizes` tells the browser how wide the image will display so it can pick one; `<picture>` with `<source>` swaps in a different image per condition.

Where the book teaches it

Related terms

High-density screenloading="lazy"