Created
January 28, 2022 17:56
-
-
Save henshaw/0b8129d3897f918e21f1379e100218be to your computer and use it in GitHub Desktop.
Picture element supporting AVIF and WebP image formats
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<picture> | |
<source srcset="image.avif" type="image/avif"> | |
<source srcset="image.webp" type="image/webp"> | |
<img src="image.jpg" alt="description"> | |
</picture> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Referenced on AVIF, a next-gen image format for the web, will have to wait in line behind WebP