Skip to main content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Content style guide

Alternative text for images

What alternative text is

Alternative text (also called “alt text”) is a written substitute for a visual image on a screen. Alt text provides the content and purpose of the image to people who can’t perceive the visual image.

Why we must provide relevant and meaningful alt text

This helps us make sure that everyone on VA.gov gets the same information—no matter how they interact with our site.

For example:

  • People who are blind or have low vision can listen to the alt text description of an image on their screen reader.
  • People who’ve turned off images on their device because they have low internet bandwidth can read the alt text description instead.

A note on decorative images

Images that are for decorative purposes only don’t require alt text.

Here’s when we consider an image decorative:

  • The image doesn’t provide important context to the page content, and
  • The image isn’t used as a link to direct people to more information

How to create quality alt text

Follow these 5 tips to create relevant and meaningful alt text:

  1. Provide the same meaningful information the image provides. Use clear, descriptive text to describe what the person needs to know from the image. Be sure to consider the context of the image within the surrounding page content as well.
  2. Be concise. Use as few words as possible to tell the person what they need to know. Aim for no more than 150 characters. Concise content allows people to focus on the most important information.
  3. Avoid duplicate page content. Only include unique information that’s not also in page content near the image. Repeating information can cause frustration or confusion.
  4. Skip phrases like “image of,” “photo of,” or “graphic of.” Screen readers already announce that each image is a graphic. So you don’t need to add this context.
  5. Leave the image file name out of your alt text. File names don’t provide useful information and can cause frustration or confusion.

When an image is the only content inside a link, the image’s alternative text (alt text) becomes the accessible name of the link. These types of images are called functional images because they perform an action. Write alt text that describes where the link goes or what it does, not what the image looks like.

People using a screen reader should receive the same information about where the link goes or what it does as people not using a screen reader.

Describe the destination or action of the link.

Like this

A VA seal that links to the VA.gov homepage:

Go to VA.gov

A home icon that links to the homepage:

Home

A search icon that opens site search:

Search

Avoid describing only the image

Don’t write alt text that only describes the image if it doesn’t communicate the purpose of the link.

Not this

VA logo and Seal, U.S. Department of Veterans Affairs

Although this alt text describes the image, it doesn’t identify the purpose of the link. People using a screen reader receive different information than people who infer the link’s purpose from the visual presentation and context.

If a link already contains descriptive text, treat any accompanying image as decorative by using an empty alt="".

Don’t use title as an alternative

The title attribute doesn’t reliably provide an accessible name for image links. The attribute isn’t consistently exposed by screen readers, and isn’t available to keyboard-only or touch users. Use the alt attribute to provide the link’s accessible name.

Privacy guidance

Personally Identifiable Information (PII) or Protected Health Information (PHI) shouldn’t be used in alt text for images if the images are interactive.

  • This ensures the information isn’t tracked back in analytics or other logs.
  • Interactions with images are logged in some analytics tools so alternative text must be masked to protect PII/PHI.
    Learn more about masking information in the Datadog RUM dashboard
  • For example, a page has images representing a series of x-rays, and each x-ray includes the body part and injury that is the focus of the image (ex. anterior fracture of the left tibia). The body part and injury x-rayed are considered PHI.

Learn more about PII/PHI on the VA Platform website

Last updated: Jun 30, 2026