Alt text is a short written description of an image. You add it in your site builder's image settings, in a field that may be labeled alt text, alternative text, or image description. People who use a screen reader get that description in place of the picture, spoken or in braille. The same text can also appear if the image does not load.
You do not need to edit code to do this well. If you can describe a photo to a customer over the phone, you can write alt text. Below is a simple way to decide what to say, followed by before-and-after examples for the pictures that show up most often on a small business site: a product photo, a team photo, a logo, a flyer with hours, a chart, and a decorative image.
Start with the job the image is doing
The useful question is not "What does this look like in every detail?" It is "What would someone miss if this image were not here?"
The W3C Web Accessibility Initiative's alt decision tree is a clear public guide for that question. In plain language, it leads you to these choices:
- If the image is a link or a button, describe where it goes or what it does, not how it looks.
- If the image contains text — a flyer, a sale graphic, a menu board — put those same words in the alt text, unless they already appear as regular text next to the image.
- If the image adds meaning, such as a product, a person, or a place, write a short description of that meaning.
- If it is a chart or another complex graphic, write a short alt text that names the chart, and put the full information in the page itself. A brief paragraph or a simple table works well.
- If the image is only decoration, or it repeats words that are already on the page, use empty alt text:
alt="".
That empty value is a deliberate choice. It tells assistive technology to skip the image. Leaving the alt field out altogether is not the same thing. The WAI page on decorative images notes that when the field is missing, some screen readers announce the file name instead, which is rarely helpful.
These categories come from the WAI Images Tutorial, including the pages on informative images, decorative images, images of text, functional images, and complex images.
Before-and-after examples
The "before" lines are the kind of alt text that often gets added in a hurry: a file name, a generic word, or a string of keywords. The "after" lines are written for a person first, in everyday language. You can adapt the pattern to your own photos. The businesses and people in these examples are made up.
1. A product photo
A photo on a product page for a neighborhood bakery.
- Before:
IMG_4382.jpg - After:
Almond croissant with toasted sliced almonds on a white plate
Name the product and the details a shopper would care about, such as flavor, color, material, or size. You do not need to start with "image of" or "photo of." The screen reader already knows it is an image.
2. A team photo
A photo of the owners on an About page.
- Before:
Our amazing team - After:
Maya Chen and Luis Ortega, co-owners of Oak Street Hardware, standing at the front counter
Use people's names when you know them and it is appropriate to share them. If you are using a stock photo of people you do not know, do not invent names. Describe the role the photo is playing, such as Two stylists cutting hair at the front of the salon.
3. A logo
What you write depends on how the logo is used. The WAI pages on images of text and functional images draw this distinction.
If the logo is the only thing inside a link to your homepage:
- Before:
logo.png - After:
Oak Street Hardware home
If the logo is inside a link that already contains your business name:
- After:
alt=""(leave it empty)
If the logo is not a link, use the business name:
- After:
Oak Street Hardware
You usually do not need the word "logo" in the alt text.
4. An image that contains text (a flyer with hours)
A graphic that says "Holiday hours" with the hours appearing only inside the picture.
- Before:
holiday hours flyer - After:
Holiday hours: closed Thursday for Thanksgiving; open Friday through Sunday, 10 a.m. to 4 p.m.
If those same hours are already written as regular text next to the flyer, the image can use empty alt text. When the words exist only in the picture, the alt text should carry them. Even better, put hours in real text on the page so everyone can read and copy them.
5. A chart
A simple bar chart on a page about a farm stand's Saturday sales.
- Before:
sales chart - After (short alt text):
Bar chart of Saturday morning sales for berries, bread, and flowers, described in the table below.
Then include the numbers on the page, in a short paragraph or a small table. The alt text names the chart and points to that text. It does not have to list every value by itself.
6. A decorative image
A soft background photo behind a heading, or a small divider flourish that does not add information.
- Before:
beautiful background flowers - After:
alt=""(leave the alt text empty)
Empty alt text is the right choice here. Filling the field with a poetic description adds noise for someone moving through the page with a screen reader.
7. A button or icon that does something
A magnifying-glass icon that opens search, with no visible text label.
- Before:
magnifying glass - After:
Search
Describe the action, not the object in the picture.
8. The same product photo, used as a link
The croissant photo from the first example, now used on the homepage as a link to the pastry menu.
- Before:
Almond croissant with toasted sliced almonds on a white plate - After:
See this week's pastries
When the image is the link, the alt text should describe the destination.
A few habits that help
- Write for the page in front of you. The same photo can need different alt text on a product page, a blog post, and a homepage link.
- Be specific and brief. A short phrase or one sentence is usually enough, except when you are carrying over the words from an image of text.
- Skip file names, generic words like "image" or "graphic," and lists of keywords.
- You do not need to start with "picture of" or "image of."
- Empty alt text (
alt="") is a decision, not a blank you forgot to fill in. - Add alt text when you upload or replace an image, in your site builder's image settings. The field may be called alt text, alternative text, or image description. People sometimes call this an "alt tag." The idea is the same. You do not need to edit code.
A second look, if you want one
Want a second look? Try WebMax's free, automated, partial check of one page. It won't catch everything a person would, and it isn't a full audit.