The sizes attribute is not supported in any browser. The imgset attribute does not exist at all. To specify high-resolution images, use the srcset attribute:
<picture> <source srcset="image/mushroom_landscape.jpg, image/mushroom_retina.jpg 2x" media="(min-width: 60em)"> <img src="image/mushroom.jpg" alt=""> </picture>
The srcset attribute has an effect only when the <source> element is located directly inside the <picture> element.
Each line can consist of the following parts:
- image address;
- a width descriptor that is a positive integer followed by w (for example: 600w). The descriptor tells the browser for which control point to use this image;
- The pixel density descriptor is a positive decimal number immediately followed by x.
Each line in the list must contain at least a handle to the width or density of pixels.
The browser selects the most appropriate image to display at a given time.