<html>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<body>
<h2>Show Different Images Depending on Browser Width</h2>
<p>Resize the browser width and the image will change at 600px and 1500px.</p>
<picture>
<source srcset="img_smallflower.jpg" media="(max-width: 600px)">
<source srcset="img_flowers.jpg" media="(max-width: 1500px)">
<source srcset="flowers.jpg">
<img src="img_flowers.jpg" alt="Flowers" style="width:auto;">
</picture>
</body>
<!-- Mirrored from www.w3schools.com/html/tryit.asp?filename=tryhtml_responsive_picture by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 05 Jun 2019 13:14:21 GMT -->
</html>