Home
Bookmarks
Leagues
LEARN
Courses
Career Paths
Assessments
Tutorials
Arcade
Glossary
GROW
Certifications
Log in
Glossary
Log inSign up
Courses/UX Design Foundations/Image Properties/
Exercise #5

Responsive Image Loading: `srcset` and `<picture>`

Serving a massive 2400px desktop banner to a mobile user on a 4G connection wastes battery, consumes cellular bandwidth, and triggers page bounce:

srcset and sizes

Allows the browser to automatically select the optimal file resolution based on screen width and device DPR:

<img src="hero-800.webp"
     srcset="hero-400.webp 400w, hero-800.webp 800w, hero-1600.webp 1600w"
     sizes="(max-width: 600px) 100vw, 50vw"
     alt="Analytics platform dashboard">

The <picture> Element

Used for true art direction, serving entirely different crops (e.g., vertical portrait on mobile, panoramic widescreen on desktop).

Topics

Exposure, Luminance, and Dynamic Range in UI Imagery
Color Temperature, Saturation, and Brand Consistency
Depth of Field, Bokeh, and Guiding Attention
Ensuring Text Legibility Over Dynamic Imagery
Responsive Image Loading: `srcset` and `<picture>`
Performance Budgets, Lazy Loading, and Core Web Vitals
design
UX Design

From lesson

8

Image Properties

Level 2 · Elements of Design I

Top contributors

Community contribution details will appear here once real learner activity is available.

Share