Hero Banner

The <picture> element lets you provide different source images for different viewports — not just different resolutions (srcset) but entirely different crops or subjects ("art direction").

Team collaboration in a bright office

Responsive art direction

Resize the browser to see how the crop changes at each breakpoint.

Breakpoints

Critical rule: the <img> inside <picture> is the fallback. Its src and alt always load if no <source> matches — so make it a sensible default.