Enderby Websites

Articles · Website content

How to write alt text for images on your small business website

Published · Updated

Alt text is a short written description of an image. It sits in the code of your page and does not show on screen. A visitor who cannot see the image still gets the information.

Three groups of people rely on it. People who are blind or have low vision use screen readers, which read the alt text out loud. People on a weak connection see the alt text when an image fails to load. Search engines read it to understand what the image shows.

Most small business sites have images with no alt text at all, or with a file name such as IMG_4821.jpg in its place. Fixing this takes a few minutes per image. This guide shows what to write.

Find where to add alt text

Every website builder has a place for it. In WordPress, open the Media Library, click an image, and fill in the field called Alternative Text. In the page editor, click the image and look in the settings panel. Other builders use labels such as “alt text,” “image description,” or “accessibility text.”

If you cannot find the field, search the help pages of your builder for “alt text.” Or send us a message through our contact page and we will point you to it.

Describe what the image shows

Write what a person would say if they described the photo over the phone. Name the subject and the action. Add detail only when it matters to the page.

Weak: “kitchen”

Better: “Finished kitchen renovation with white cabinets, a quartz countertop, and a gas range.”

Weak: “team photo”

Better: “Three staff members standing in front of the salon reception desk.”

Keep it to one sentence. Many guides suggest staying under about 125 characters, because some screen readers handle longer text poorly. If an image needs more explanation, such as a chart, put the details in the visible text on the page.

Skip “image of” and “photo of”

A screen reader already tells the listener that an image is coming. Starting with “Image of” or “Picture of” adds noise. Begin with the subject instead.

Match the alt text to the job of the image

The same photo can need different alt text on different pages. Ask what the image is doing on this page.

Product photos. Name the product and the details a buyer would look for, such as color, size, or material. “Blue ceramic mug with a wide handle, 12 ounce” tells a shopper more than “mug.”

Photos of your work. Say what was done. “Cedar fence along a backyard in Enderby” helps a visitor see your service and your location.

Photos of people. Use the person’s name and role if the page names them. On a team page, “Dana Reyes, office manager” works when the caption or heading already uses that name. Do not guess at a person’s age, health, or background.

Logos. Write the business name. If the logo links to the homepage, “Business name, home” tells the listener where the link goes.

Images that contain text. Repeat the words in the image. A sale banner that says “20 percent off all hair color this week” needs that sentence as alt text. Better still, put the text on the page as real text, so everyone can read it.

Buttons and linked images. Describe where the link goes, and not what the picture looks like. A magnifying glass icon that opens a search box gets the alt text “Search.”

Maps and charts. Give a short summary in the alt text. Put the full details, such as the address and hours, in text next to the map.

Leave decorative images empty

Some images add nothing to the content. Examples are a thin divider line, a background pattern, or a stock photo of a handshake that repeats what the text already says. These should have an empty alt attribute, written as alt=“” in the code.

Empty is different from missing. A missing alt attribute makes some screen readers read the file name aloud. An empty one tells the reader to skip the image. In many builders, a checkbox labeled “decorative” does this for you.

Use this option with care. If the image carries any meaning, describe it.

Use keywords only when they fit

Alt text can help your pages show up in image search and in regular search. The way to help is to describe the image accurately. If the photo shows a furnace installation in Enderby, saying so is accurate and useful.

Do not cram in a list of search terms. “Plumber Enderby plumbing plumber near me cheap plumber” helps no one. Screen reader users have to listen to it, and search engines can treat it as spam. Our guide to getting your website to show up on Google covers the steps that matter more.

Check your most important pages first

You may have hundreds of images. Start with the pages visitors see most. Work in this order:

  1. The homepage
  2. Your services page
  3. Your contact page
  4. Product or gallery pages

On each page, go through every image and ask two questions. Does this image carry information? If yes, write one sentence. If no, mark it decorative.

New photos are easier. Add the alt text at the moment you upload the image, while you still remember what it shows. If you are shooting your own pictures, our guide on taking photos for your website with a phone helps you get images worth describing.

Test your work

Right-click an image in a desktop browser and choose Inspect. The code highlights the image tag, and you can look for alt= followed by your text. You can also turn on a screen reader. Windows has Narrator, and Mac and iPhone have VoiceOver. Listen to one page from top to bottom. If the page makes sense without seeing it, the alt text is working.

Alt text is one item on a longer list. Our website accessibility checklist covers the others, including color contrast, text size, and keyboard use.

Mistakes to avoid

  • Leaving the file name as the alt text
  • Writing the same alt text on every image
  • Stuffing in keywords
  • Writing a paragraph where a sentence works
  • Describing a photo that does not matter to the page, when it should be marked decorative
  • Putting important words, such as a phone number, only inside an image

Good alt text is short, specific, and true to the image. Write it as you add each photo, and your site works for more visitors from the start.

Ready when you are

Get in touch