HTML <img> decoding Attribute
Example
<img decoding="async" src="img-boy.jpg" alt="Boy" width="300" height="200">
Meaning
The decoding specifies an image decoding hint to the browser.
Standard Syntax
HTML: <img src="URL" alt="text" decoding="sync|async|auto" >,
XHTML: <img src="URL" alt="text" decoding="sync|async|auto" />
Advertisement
Attribute Values
| Value | Description |
|---|---|
| sync | Decode the image synchronously, for atomic presentation with other content. |
| async | Decode the image asynchronously, to reduce delay in presenting other content. |
| auto | (default) No preference for the decoding mode. The browser decides what is best for the user. |