Menu

Alt text for small business websites: before-and-after examples you can copy
πŸ“°

Alt text for small business websites: before-and-after examples you can copy

DEV Community: htmlΒ·Fieldnote StudioΒ·12 days ago
#ldvsiy1J
#devto2#devto#dev#screen#decorative
Reading 0:00
15s threshold

Most small business websites I look at have the same problem: the images either have no alt text at all, or the alt text says something like IMG_4032.jpg or "image of our team". Screen reader users get nothing useful, and search engines get nothing useful either.

Here's a short, practical way to fix it, with real before-and-after examples.

The one question to ask

For every image, ask: "If this image didn't load, what would I need to say in its place?"

That's your alt text. Not a description of the pixels, but the job the image is doing on the page.

Before and after

A bakery's homepage hero

Before: alt="hero.jpg"

After: alt="Fresh sourdough loaves cooling on a rack in our Main Street bakery"

A plumber's "About" photo

Before: alt="image of man"

After: alt="Owner Dave Ruiz in the company van"

A product photo in a shop

Before: alt="product"

After: alt="Handmade ceramic mug in sage green, 12 oz, with a wide handle"

A logo that links home

Before: alt="logo"

After: alt="Ruiz Plumbing home" .…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.