The Idiot Sandwich - On Embedding Alt Text
https://shkspr.mobi/blog/2025/11/the-idiot-sandwich-on-embedding-alt-text/
Alt text is great. It allows people who can't see an image to understand what that image represents.
For example, the code might say: <img src="whatever.gif" alt="Two cute kittens are playing on a blanket">
If you are blind, you get an idea of what's being conveyed by that image. If you're on a train and the WiFi craps out just before the image loads, you'll also benefit! If the image is of text in a language you don't read, your device can translate it for you.
The alt text can be as long or as short as is necessary. It might just be "kid giving a thumbs up" or it could be incredibly detailed. Here's how the BBC's Newsbeat typically adds alt text for younger viewers:
Is that too much? Maybe. It depends on your audience. For partially sighted kids who crave the same pop information as their sighted peers, I think it is great.
So alt text is a good thing. But people are lazy and don't always write it. Perhaps the answer is to embed alt text inside image metadata?
It's a lovely idea - and technically feasible - but it fails to account for user needs.
And that brings me to the point of this post. Who is your alt text for? What information are you trying to share?
Here's a good example. I looked at a bunch of popular memes which had alt-text pre-populated in them. Here's what they said:
Terence Eden
@Edent@mastodon.social
Whenever people talk about embedding alt text into images, I remember that lots of gif search services already try to do that.
Here's BlueSky's gif service. I searched for some popular memes. Each had alt-text baked in.
Take a look and tell me if you think that the embedded text conveys the sentiment of the image? If you couldn't see the animation, would you understand what was going on from that alt?
2025-09-07, 21:11 12 boosts 22 favorites OK, so sometimes the captioner makes a mistake and thinks the Chuckle Brothers are kissing (WTF?!) perhaps we can excuse that as being an obscure image. But the "idiot sandwich" one is inexcusable. It's a popular meme with a specific meaning.
Which leaves me with a few questions for you:
- If you saw that the image you were sharing had crap alt text - would you bother editing it?
- Is bad alt text worse than no alt text?
- Can the same image have multiple meanings?
- Have you spent any time browsing the web with images turned off? Did you enjoy it?
You can find out more about Alt Text on the RNIB site.
#a11y #accessibility #alttext #html