October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan NowOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk4 min

Make Website Images More Accessible with Alt Text

Choose image alt text by purpose and context: describe useful information or an action, leave decorative and redundant images empty, and give complex visuals a full text equivalent.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Write alt text for the job an image does in its page: briefly convey useful information, name the action or destination of a linked image, and use alt="" when an image is decorative or its information is already provided nearby. Charts and other complex images need an accessible text equivalent beyond a short alt attribute.

Decide what the image does in context

There is no universal caption formula. Ask whether the image contributes information, performs an interface function, repeats nearby content, or contains details that need a longer explanation. W3C WAI’s image alt decision tree is a useful way to apply these questions.

  • Informative: convey the meaning relevant to the page.
  • Functional: explain what activating the image does or where it leads.
  • Decorative or redundant: use an empty alternative, alt="".
  • Complex: provide the detailed information in accessible text elsewhere on the page.

Write alt text for informative images

Use a concise phrase or sentence that gives the image’s relevant meaning. You do not need to inventory every visible detail. The right description depends on the surrounding content: a bird’s exact identity may be central on an identification page but incidental in a general article about a park. W3C WAI’s informative images guidance emphasizes meaning in context, which may not be the same as a literal visual description.

When to use empty alt text

For an HTML image that is purely decorative, adds nothing beyond nearby text, or repeats information already described, use an empty alt value: alt="". This lets assistive technology skip the image. Do not omit the attribute: W3C WAI notes that some screen readers may announce the image’s file name when no alternative is present. Whether an image is decorative depends on its purpose in context, not on an automated rule alone. See W3C WAI’s decorative images guidance.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall

Describe linked images and buttons by their function

When an image is the content of a link or button, write an alternative that communicates the destination or action, not merely what the image looks like. For example, a printer icon used as a button should have an alternative that indicates printing. If adjacent text already names the same link or action, avoid repeating it in the image alternative; an empty value may be appropriate for the redundant image.

Handle text inside images

If words in an image carry meaning and are not available elsewhere as real text, include those words in the alternative. If the same words already appear nearby, or the text is only decorative, an empty alternative can prevent needless repetition. When possible, use actual page text rather than embedding important text in an image; text in images can be harder to customize and access.

Give complex images a text equivalent

A chart, diagram, or similarly dense visual may require more than a short alt phrase. Give the image a concise identifier or takeaway, then include its complete data or explanation in accessible text on the page—for example, in a nearby summary or data table. Do not try to squeeze a long explanation into the alt attribute. W3C WAI discusses this approach in its complex images guidance and tips and tricks.

Describe image groups and image maps

When several images work together to communicate one idea, provide an alternative that conveys the group’s information rather than making readers assemble redundant fragments. For an image map, provide context for the overall set of links and alternatives for each clickable area that state its purpose or destination.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Check the HTML you publish

For each image, review the page as a whole and make sure the alt value reflects its purpose:

  1. Ask whether the image contributes information or performs an action in this context.
  2. Check whether its meaning or text is already available nearby.
  3. For informative content, write the relevant meaning briefly; for a link or button, identify its action or destination.
  4. For a decorative or redundant image, include alt="".
  5. For a chart or other complex visual, add the detailed text equivalent to the page as well as a concise identifier or takeaway.

For example, an informative HTML image might be marked up as <img src="park-bird.jpg" alt="A red-tailed hawk perched on a park sign"> if that detail matters to the page. A purely decorative image could use <img src="leaf-border.png" alt="">. The appropriate wording depends on the image and its surrounding content.

Rank #4

Standards context

W3C WAI connects its image guidance to WCAG 2.2 Success Criterion 1.1.1, Non-text Content, Level A. This is standards context, not a determination of legal duties for a particular site or jurisdiction.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Or skip the browser setup

ScreenshotNeo is a website screenshot API and MCP server for developers. One GET request can return a screenshot or PDF; its screenshot features can help inspect how a page appears, but they do not decide or write appropriate alt text. Cookie banners, popups, and chat widgets are removed before a shot. Bot checks, blank pages, and failed loads are never billed, and an MCP server lets AI agents take screenshots.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

cURL example, with ScreenshotNeo API documentation:

curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp

There are 1,000 screenshots a month free with no card; paid plans start at $5 for 3,000. Sign up for ScreenshotNeo.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
PC Slower Than It Used to Be?Free scan - under a minute
Crashes, No Sound, or Screen Glitches?Free driver scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.