Srcset and sizes attributes
Srcset and sizes attributes
The srcset
and sizes
attributes on img
(or source
) elements allow authors to define various image resources and "hints" that assist a user agent to determine the most appropriate image source to display (e.g. high-resolution displays, small monitors, etc).
Spec | https://html.spec.whatwg.org/multipage/embedded-content.html#attr-img-srcset |
---|---|
Status | WHATWG Living Standard |
IE | Edge | Firefox | Chrome | Safari | Opera |
---|