Skip to content
HTML.ONE
Home HTML Elements

HTML <picture> Element

Offers alternative image sources with an img fallback.

Example

<picture><source media="(min-width: 800px)" srcset="large.jpg"><img src="small.jpg" alt="Landscape"></picture>

Further reference

HTML Living Standard