Complete the lesson quiz and earn 250 XP.
In digital interface composition, imagery must harmonize with surrounding UI tokens. Product photos that are severely overexposed or underexposed destroy visual rhythm:
#FFFFFF), obliterating edge contrast against light backgrounds.Images carry distinct chromatic temperatures that influence emotional perception:
In visual composition, depth of field (DoF) is a powerful interaction design mechanism:
Placing headlines directly over photographs is one of the most common causes of [WCAG contrast](/glossary/contrast-ratio) failure:
backdrop-filter: blur) container over the image.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 sizesAllows 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">
<picture> ElementUsed for true art direction, serving entirely different crops (e.g., vertical portrait on mobile, panoramic widescreen on desktop).
Images account for over 50% of the average web page's total payload. Image optimization directly determines Google Core Web Vitals:
width and height dimensions. Always define aspect ratios in CSS.loading="lazy" to defer downloading until the user scrolls near them.