<img> with srcset using x values

Lias and Little Puss: two ten week old grey tabby kittens

A browser that supports srcset will request kittens_1x.jpg on a 1x display or kittens_2x.jpg on a 2x display.

The sizes example shows how to use srcset with w values and the sizes attribute. The art direction and file types examples show ways to use the picture element.

View source on GitHub