Dynamic type and text scaling: Mobile accessibility requirements Discover

Alt Text: What It Is and How to Write It

Alt text is a text alternative for an image. It gives someone who cannot see the image the information they need to understand the page or use a control. On the web, you usually provide it through the alt attribute of an HTML image element.

To write good alt text, ask: If this image were unavailable, what would the reader miss? For a photo in a venue guide, the answer might be that a ramp leads to the main entrance. For the same photo used as a link to directions, the answer might simply be “Directions to the main entrance.” The pixels have not changed; the reader’s task has.

What alt text does (and what a caption does instead)

What alt text does (and what a caption does instead)

A screen reader can announce an image’s alt text as the reader moves through a page. For the venue guide, the HTML might read <img src="entrance.jpg" alt="A ramp leads to the main entrance beside the steps."> The description tells the reader about the route without making a broader claim that the entire venue is accessible.

A caption, by contrast, is visible text that accompanies the image. It might name the venue or give its opening hours. If the caption already identifies the venue, the alt text need not repeat its name. If the caption gives the hours but says nothing about the ramp, the alt text still has a job to do. Write the two together so that someone reading both gets one coherent account.

Choose alt text by the image’s purpose

Choose alt text by the image’s purpose

Informative photos: describe the relevant detail

Suppose a product page offers two versions of a notebook. “Notebook” identifies the object but does not help a buyer choose. “Open notebook with a dot grid on both pages” distinguishes that version from the lined one. There is no need to mention the desk beneath it unless the desk matters to the purchase.

Be precise about what the image supports. “A person signs the form at the reception desk” describes an action. “A satisfied customer signs up” guesses at the person’s feelings and may misidentify what they are doing.

Decorative images: use an empty alt attribute

If an image adds atmosphere but no information, use alt="". A decorative wave between sections is a good example. Describing it as “blue wavy line” interrupts the reader without helping them understand either section.

An empty attribute is not the same as a missing one. An empty value deliberately marks an ordinary image as something assistive technology can skip. If the attribute is missing, a screen reader may announce a filename instead. Check the published HTML if you are unsure what your content editor produces when you leave its alt text field blank.

Linked images and buttons: name the destination or action

If a magnifying glass is the only content of a search button, the button needs the accessible name “Search,” not “Magnifying glass.” For a button that contains an image, the image’s alt text can supply that name. If the button is already named by visible text or another accessible labeling method, the icon need not repeat it.

The same distinction applies to links. A logo that is the only content of a homepage link can use “Corpowid home.” A thumbnail inside the same link as a clearly written article title can usually use empty alt text if it adds no information. But if the thumbnail is a separate link, the nearby title does not automatically name it. Test each link on its own.

Screenshots, charts and diagrams: put detail where readers can use it

In a help article, “Screenshot of settings” rarely explains the important detail. “Export is in the upper-right corner of Consent records” helps a reader locate a control. Better still, put the instruction in the article: “Open Consent records and select Export.” If the screenshot then adds nothing beyond the instruction, it can have empty alt text.

For a chart, identify the comparison or takeaway. In an illustrative accessibility report, “Missing form labels are the most frequent issue in the audit” communicates more than “Bar chart of issues.” If readers also need the counts to prioritize fixes, put those values in a nearby accessible table. The alt text can point readers to that table rather than forcing them to listen to a long sequence of numbers.

How to write and test alt text before publishing

  1. Read the surrounding passage. Note the heading, caption and next action. A photo of a jacket may illustrate its color on a catalog page but its pocket placement in a repair guide.
  2. Draft a replacement, not an inventory. Start with the detail the reader needs: “Zippered pocket on the inside left seam.” Drop background details that do not help the reader find the pocket.
  3. Read the page with your words in place of the image. Does the sentence make sense? Can you identify the link destination or complete the instruction? Remove repeated phrases, especially when the caption immediately follows the image.
  4. Check the published result. Inspect the image’s alt attribute. For a linked image or button, check the accessible name of the control itself in the browser’s accessibility tools. A filled-in field in your CMS is not enough if the template never outputs it.

There is no ideal character count for every image. A short phrase may fully name a control; a sentence may be appropriate for a photo. If the description becomes a paragraph of instructions, consider moving those instructions into the page, where everyone can read and revisit them.

Review alt text across a website

Review alt text across a website

Start with images whose alternatives affect whether someone can finish a task: product variants, image-only links, checkout controls and instructional screenshots. Group findings by template as well as by page. If every product thumbnail lacks a name because a template omits the alt attribute, editing individual descriptions in the media library will not address the underlying problem.

Separate coverage from quality. An automated audit can flag a missing attribute. It takes context to decide whether “front view” adequately distinguishes two products or whether an intentionally empty alternative is correct. Sample a published page from each important template, and review descriptions again when an image, caption or link destination changes. Take particular care with reused assets: a single description stored in a media library may not fit every placement.

Corpowid generates alternative text with AI and injects it directly into websites. Its accessibility auditing and real-time monitoring tools can support the wider review alongside that work. For a demo, bring a product page, a help article or another image-heavy template. Ask to see how generated alternatives read in context and how your team can check the result on the live page.

Alt text FAQ

Should alt text include SEO keywords?

Use a product name or descriptive term when it helps identify what the image shows. Do not add search phrases for their own sake. “Navy linen shirt with a button-down collar” helps a shopper; a string of related clothing keywords does not.

Should I start with “image of” or “photo of”?

Usually not. Start with the subject or action. Mention the medium when it changes the meaning: “Artist’s rendering of the proposed entrance” makes clear that the picture does not show the entrance as it exists today.

What if the image contains important text?

Make sure readers can access the message, not just a description of its appearance. If a banner is the only place that announces a registration deadline, provide the deadline in text. Prefer visible page text for essential details; if the banner then repeats that message and has no other function, it can use empty alt text.

Does adding alt text make a website WCAG 2.2 compliant?

No. Appropriate text alternatives address one part of accessibility. They do not establish that forms are labeled, controls work with a keyboard or the rest of the page meets the applicable criteria. Review images as part of a broader accessibility audit, not as a substitute for one.

Corpowid is recognized by Gartner

Corpowid has been recognized by Gartner, a leading global research and advisory firm, for our innovation and performance in digital accessibility. These badges reflect our commitment to creating inclusive, AI-powered web experiences.

Have questions about Corpowid?

Let’s connect.

We will get back to you as soon as possible.