There is a widespread assumption that alt text is simply a shorter caption. In practice the two serve opposite purposes: one replaces the image for someone who cannot see it, the other accompanies the image for someone who can.

Getting that distinction right changes what you write. This guide covers the practical consequences, including length targets and what to do with purely decorative images.

This note is part of a series on image descriptions for public-facing sites, published via Dev.to.

For the full walkthrough, see the commercial product label examples.