Title: HTMLImageElement: sizes property - Web APIs | MDN
Open Graph Title: HTMLImageElement: sizes property - Web APIs | MDN
Description: The sizes property of the HTMLImageElement interface allows you to specify the layout width of the image for each of a list of media queries, or auto for lazy-loaded images to allow the browser to automatically select an image to display based on the layout size of the element. This allows the browser to choose between different images specified in the element srcset to match different media conditions — even images with different orientations or aspect ratios.
Open Graph Description: The sizes property of the HTMLImageElement interface allows you to specify the layout width of the image for each of a list of media queries, or auto for lazy-loaded images to allow the browser to automatically select an image to display based on the layout size of the element. This allows the browser to choose between different images specified in the element srcset to match different media conditions — even images with different orientations or aspect ratios.
Opengraph URL: https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/sizes
Domain: developer.mozilla.org
| og:locale | en_US |
| og:image | https://developer.mozilla.org/mdn-social-image.46ac2375.png |
| og:image:type | image/png |
| og:image:height | 1024 |
| og:image:width | 1024 |
| og:image:alt | The MDN logo |
| og:site_name | MDN Web Docs |
| twitter:card | summary |
| twitter:creator | MozDevNet |
| position | 4 |
Links:
Viewport: width=device-width, initial-scale=1.0