: The PICTURE Element
Last updated: 2026-09-12
<picture>The PICTURE Element
Provides multiple image sources for an img, letting the browser pick the best one by viewport, resolution, etc.
| Category | Links & Media |
|---|---|
| Content Model | Flow content |
| Allowed Parents | Any element that accepts flow content |
| Content Tag | Yes — requires closing </picture> tag |
| Status | Standard |
📝 Syntax
<picture>image sources</picture>
▶ Example
Edit the code below and see the live result in the playground:
🌐 Browser Support
| Browser | |||||
|---|---|---|---|---|---|
| <picture> | ✓ v1 | ✓ v12 | ✓ v1 | ✓ v1 | ✓ v1 |
| Supported in all major browsers | |||||
Tip: picture must contain an img as fallback; source only chooses, the img is always what renders.
🏷️ Related Tags
💡 Related Cases
More case studies coming soon — check back later.