<picture>
    <source srcset="image-small.jpg" media="(max-width: 768px)">
    <source srcset="image-large.jpg" media="(min-width: 769px)">
    <img src="fallback-image.jpg" alt="An image">
    <!-- script-supporting 요소(script, style, link)는 선택적(옵션)으로 사용할 수 있음 -->
    <script src="image-script.js"></script>
</picture>
<!-- img 태그를 생략했음 -->
<picture>
    <source srcset="image-small.jpg" media="(max-width: 768px)">
    <source srcset="image-large.jpg" media="(min-width: 769px)">
</picture>
<!-- img 태그만을 사용했음 -->
<picture>
    <img src="image.jpg" alt="An image">
</picture>
<picture>
    <source srcset="image-small.jpg" media="(max-width: 768px)">
    <source srcset="image-large.jpg" media="(min-width: 769px)">
    <img src="fallback-image.jpg" alt="An image">
</picture>
<picture>
    <source srcset="photo.avif" type="image/avif">
    <source srcset="photo.webp" type="image/webp">
    <img src="photo.jpg" alt="photo">
</picture>

caniuse.com에서 더 자세한 정보를 확인해 보세요.

caniuse.com에서 더 자세한 정보를 확인해 보세요.