CSS Portal
Run
Search
« Back to
HTML media Attribute
<picture> <source media="(min-width: 650px)" srcset="images/sunset1.jpg"> <source media="(min-width: 465px)" srcset="images/sunset.jpg"> <!-- The img element will be selected if none of the above sources match --> <img src="images/sunset1.jpg" alt="Sunset"> </picture>
If this site has been useful, we’d love your support! Running this site takes time and resources, and every small contribution helps us keep creating valuable content. Consider buying us a coffee to keep things going strong!
☕ Buy a Coffee