The HTML decoding attribute
Quick answer
The HTML decoding attribute hints how the browser should decode the image relative to rendering the rest of the page. It is used on the <img> element.
Overview
Syntax
<img src="p.jpg" decoding="async" alt="">
Values
| Value |
|---|
| auto (default) | sync | async |
Best practices
Frequently asked questions
What does the decoding attribute do?
Hints the image decoding strategy.