Created
May 3, 2021 13:38
-
-
Save wpmu-authors/d42f64209472c970b30ecfd9af239d14 to your computer and use it in GitHub Desktop.
retina-wordpress.html
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 | |
media="(min-width: 900px)" | |
srcset="large-image_1x.jpeg 1x, large-image_retina.jpeg 2x" | |
type="image/jpeg > | |
<source | |
media="(min-width: 601px)" | |
srcset="medium-image_1x.webp 1x, medium-image_retina.jpeg 2x" | |
type="image/jpeg" > | |
<source | |
media="(max-width: 600px)" | |
srcset="small-image_1x.webp 1x, small-image_1x.jpeg 1x" | |
type="image/jpeg" > | |
<img | |
src="large-image_1x.jpg" | |
type="image/jpeg" | |
alt="my image description"> | |
</picture> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment