Created
August 21, 2012 01:15
-
-
Save bjankord/3410238 to your computer and use it in GitHub Desktop.
Picture element type attribute example
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 alt=""> | |
<!-- If browser supports WebP, use image below: --> | |
<source src="fullsize.webp" type="image/webp"> | |
<!-- Else, use image from which ever source tag currently matches --> | |
<source src="mobile.jpg"> | |
<source src="medium.jpg" media="min-width: 600px"> | |
<source src="fullsize.jpg" media="min-width: 900px"> | |
<img src="mobile.jpg"> | |
</picture> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment