Web platform features explorer

<img sizes="auto" loading="lazy">

Limited availability
Tags: html Groups: Images

The sizes="auto" attribute for the <img> HTML element reserves layout space for an image before it loads, avoiding some layout shifts. This attribute only applies to images with the loading="lazy" attribute.

Learning resources on MDN

No MDN documentation found. You can search for the feature on MDN. If you believe that MDN has no documentation about this feature, you can open an issue on MDN's GitHub repository.

Browser support

Specifications