Alt Text
Written by Andy Sim
Last updated
Alt text, short for alternative text, is a brief written description of an image added to its code. It is read aloud by screen readers for people who cannot see the image and shown if the image fails to load.
A good description says what the image shows and why it matters, in a short phrase, without starting "image of". Decorative images can have an empty alt so screen readers skip them. Search engines also use alt text to understand pictures, which helps them appear in image search.
Examples
- "Chef plating fish amok in a Siem Reap restaurant".
- "Front view of the Angkor Design office".
- An empty alt for a purely decorative line.
Why it matters for your website
Alt text makes your site usable for blind and low-vision visitors, which is part of good accessibility, and it adds a little SEO value. It takes seconds per image and is often missed, so add it whenever you upload a photo.