Use figure with img and figcaption for captioned media—Pico constrains width and styles captions consistently. Always set meaningful alt text per HTML images guidance.
Media tips
- Content images —
figure→img alt="…"→figcaption - Decorative images — empty
alt=""so screen readers skip them - Dark UI lessons — preview with
data-theme="dark"to check contrast on photos and diagrams
Unlike utility stacks where rounded-xl shadow-lg wraps every image, Pico keeps presentation tied to semantic figure markup—add custom CSS only for hero banners or art-directed crops.
Self-check
- What is the difference between
figureand a bareimgin the flow? - When is empty
altappropriate?