🖼 Picture element

👋 FYI, this note is over 6 months old. Some of the content may be out of date.
On this page

Webp + png usage Jump to heading

<picture>
<source
type="image/webp"
srcset="/images/free-cash.webp, /images/[email protected] 2x"
/>

<source
type="image/png"
srcset="/images/free-cash.png, /images/[email protected] 2x"
/>

<img src="/images/free-cash.png" alt="Free Cash!" />
</picture>

← Back home