# Images and alt text

Source: https://watership.ca/style-guide/images-and-alt-text/

Decides when an image belongs in a document, what its alt text and caption say, and how screenshots and diagrams are prepared and kept current.

This section covers screenshots, diagrams, and other images in documentation and product content: when to include one, how to describe it for readers who can’t see it, how to crop and annotate it, and how to keep it from going stale.

An image is a claim about the product at one moment, made to readers who can’t see it. So every image needs a reason to exist, a text equivalent, and a record of when it was true. The day the interface changes, an image without that record becomes wrong without anyone editing it.

## When to use an image

### When a screenshot belongs

Rule `img-earn-place`: prefer, judgment. Address: https://watership.ca/style-guide/images-and-alt-text/#img-earn-place

**Add a screenshot only when the interface is hard to describe in words or the reader needs to recognize something.** A crowded dialog, an icon with no text label, or an expected result the reader must confirm by eye earns a screenshot. A step such as “select **Save**” doesn’t; the words already match the screen. Test: cover the image and read the step; if nothing is missing, the image goes.

- Instead of: Select **Save**. Figure 3 shows the **Save** button.
- Write: Select **Save**.

### No images of code

Rule `img-no-code-images`: never, judgment. Address: https://watership.ca/style-guide/images-and-alt-text/#img-no-code-images

**Don’t use an image of code; use a code block.** Code in an image can’t be copied, searched, read by a screen reader, or updated in place. The same applies to terminal output, configuration files, and log excerpts.

- Instead of: See the screenshot below for the deploy command.
- Write: Run `acme deploy --region eu-west`.

## Alt text

### Alt text on every image

Rule `img-alt-required`: never, mechanical. Address: https://watership.ca/style-guide/images-and-alt-text/#img-alt-required

**Give every informative image alt text, and give every decorative image an empty alt attribute.** An image that carries information has `alt` text that stands in for it. An image that only decorates (a divider, a background, a logo beside a heading) has `alt=""` so screen readers skip it. A missing `alt` attribute is neither: the screen reader reads the filename.

- Instead of: `<img src="export-dialog.png">`
- Write: `<img src="export-dialog.png" alt="Export dialog with CSV selected as the format">`

### What alt text says

Rule `img-alt-content`: avoid, judgment. Address: https://watership.ca/style-guide/images-and-alt-text/#img-alt-content

**Say what the image shows and, for a screenshot, what matters in it.** For a screenshot, name the screen and the state or control the reader should notice, and leave out the parts the step doesn’t depend on. For a chart or diagram, state the result.

- Instead of: `alt="Acme Cloud"`
- Write: `alt="Export dialog with the Format list open and CSV selected"`

### Alt text length and form

Rule `img-alt-form`: avoid, mechanical. Address: https://watership.ca/style-guide/images-and-alt-text/#img-alt-form

**Don’t write alt text of more than 125 characters, and don’t start it with “image of” or “screenshot of.”** Screen readers already announce that the element is an image, so the prefix is said twice. If the image needs more than 125 characters, describe it in the surrounding text and keep the alt text short.

- Instead of: `alt="Screenshot of the export dialog"`
- Write: `alt="Export dialog with CSV selected"`

### Text never only in an image

Rule `img-text-not-only-in-image`: never, judgment. Address: https://watership.ca/style-guide/images-and-alt-text/#img-text-not-only-in-image

**Never let text that matters live only in an image.** Error messages, settings values, commands, and steps shown in a screenshot must also appear in the text of the page. Text in an image can’t be translated, searched, resized, copied, or read aloud.

- Instead of: The error is shown in the screenshot below.
- Write: The command fails with `Error: token expired`, as the screenshot shows.

## Captions and annotations

### Captions that say why

Rule `img-captions`: prefer, judgment. Address: https://watership.ca/style-guide/images-and-alt-text/#img-captions

**Write a caption that says what the reader should notice.** “The export dialog” tells the reader nothing the image doesn’t. “The **Format** list must show **CSV** before you continue” tells them why they’re looking.

- Instead of: Figure 2: The export dialog.
- Write: Figure 2: The **Format** list set to **CSV**. Any other value produces a file the importer rejects.

### Cropping and annotation

Rule `img-crop-annotate`: avoid, judgment. Address: https://watership.ca/style-guide/images-and-alt-text/#img-crop-annotate

**Crop a screenshot to the area that matters, and annotate it with one highlight color and numbered callouts.** Cut away window chrome, other windows, and empty space the step doesn’t need. Use one color for every highlight across the document, number the callouts, and refer to each number in the text. The example pair is the image note a writer leaves for whoever prepares the screenshot.

- Instead of: Full-window capture of the console. Red box around the project name, green arrow to the region selector.
- Write: Crop to the **Project settings** panel. Callout 1 on the project name, callout 2 on the region selector, both in the document’s highlight color.

### Figure numbers and references

Rule `img-figure-numbers`: avoid, judgment, whole document. Address: https://watership.ca/style-guide/images-and-alt-text/#img-figure-numbers

**In a report or any document that will be printed or saved as a PDF, number the figures in order through the whole document and refer to each by its number before it appears.** Write the caption as “Figure 3:” followed by the caption text, and in the text write “Figure 3 shows …” with a capital F. Never point with “the figure below” or “the chart above”: a page break or a narrow screen moves the image, and a screen reader has no above. Number tables in their own sequence, as `long-table-figure-numbers` says. A web page or help article with one or two images that sit beside the step they illustrate needs no numbers. This rule applies to a document.

*Drafted, awaiting review.*

- Instead of: As the chart below shows, most tickets close within a day.
- Write: Most tickets close within a day (Figure 3).

### Credit lines and licenses

Rule `img-credit-line`: never, judgment. Address: https://watership.ca/style-guide/images-and-alt-text/#img-credit-line

**Give every image the organization didn’t make a credit line, and publish it only under a license or permission that covers the use.** The credit names the creator and the source, and the license when the license asks for it, in the form “Photo: Dana Example, Example Images” or “Map: Example Atlas, CC BY 4.0.” Put it at the end of the caption, or under the image when there is no caption; a license that asks for more, such as a link and a note of changes, gets the full attribution `cite-reuse-license` sets out. A credit is not permission: an image found on the web belongs to someone, and reusing it without a license is a legal question, which Global and legal sends to the legal team. Images the organization made, including its own screenshots, need no credit.

*Drafted, awaiting review.*

- Instead of: Figure 2: Volunteers at the spring cleanup.
- Write: Figure 2: Volunteers at the spring cleanup. Photo: Dana Example, used with permission.

## Keeping images current

### Record the product version

Rule `img-record-version`: avoid, judgment, whole document. Address: https://watership.ca/style-guide/images-and-alt-text/#img-record-version

**Record the product version with each screenshot.** Store the version (or the date and build) beside the image, in a source comment or in the image metadata, so a reviewer can tell whether the screenshot predates a change. An outdated screenshot is worse than none, because it contradicts the text with the authority of a photograph. The HTML comment in the example is one convention; a company’s overlay can name another. This rule applies to a document.

- Instead of: `![Export dialog](export-dialog.png)`
- Write: `![Export dialog](export-dialog.png)` `<!-- Acme Cloud 4.2, 2026-09 -->`

## Diagrams

### Diagram labels

Rule `img-diagram-labels`: avoid, judgment. Address: https://watership.ca/style-guide/images-and-alt-text/#img-diagram-labels

**Label every box and arrow in a diagram in words, and explain the diagram in the text.** A box without a name and an arrow without a verb (“sends,” “reads from,” “calls”) leave the reader guessing at the mechanism. A diagram the text doesn’t explain is decoration.

- Instead of: Figure 4: A, B, and C, with arrows between them.
- Write: Figure 4: Client, API gateway, and Job queue; the arrows read “sends request” and “enqueues job.”

## Video and audio

### Captions on video

Rule `img-video-captions`: never, judgment. Address: https://watership.ca/style-guide/images-and-alt-text/#img-video-captions

**Give every video with speech or meaningful sound synchronized captions that a person has checked.** Captions serve readers who are deaf or hard of hearing and everyone watching with the sound off. Automatic captions are a draft: correct the names, product terms, and numbers before publishing. Captions identify a change of speaker and describe sounds that matter (“[alarm sounds]”). Text burned into the picture doesn’t count, because it can’t be resized, translated, or turned off.

*Drafted, awaiting review.*

- Instead of: A product walkthrough published with the platform’s automatic captions, which spell Acme Cloud “Acne Cloud.”
- Write: The same walkthrough with captions corrected against the script, and “[notification chime]” where the sound tells the viewer something.

### Transcripts for audio and video

Rule `img-transcripts`: never, judgment. Address: https://watership.ca/style-guide/images-and-alt-text/#img-transcripts

**Publish a text transcript with every audio recording, and with every video whose pictures carry information the soundtrack doesn’t.** Put a link to the transcript directly beside the player. The transcript gives the speech, names each speaker, and describes what happens on screen when it matters to the meaning (“The presenter opens the **Billing** page”). A transcript is also the only version a reader can search, skim, or translate.

*Drafted, awaiting review.*

- Instead of: Listen to the quarterly update (audio, 14 minutes).
- Write: Listen to the quarterly update (audio, 14 minutes), or read the transcript.

## Maps

### Maps

Rule `img-maps`: avoid, judgment. Address: https://watership.ca/style-guide/images-and-alt-text/#img-maps

**Give every map a title, a legend for any symbol or color it uses, a date for its data, and a credit for its source, and put the facts the reader needs in the text.** A reader who can’t see the map still needs the address, the route, or the boundary it shows, so state it in words (“The entrance is on the north side, off Example Road”). Mark meaning with labels or patterns as well as color, as `incl-no-color-only` requires. Map data usually comes under a license that requires a credit, so `img-credit-line` applies to it. The alt text says what the map is for; the text carries the detail.

*Drafted, awaiting review.*

- Instead of: Figure 5: Map. See the map for where to park.
- Write: Figure 5: Parking for the open house, as of March 2026. Map data: Example Atlas, CC BY 4.0. Park in lot B, on the east side of the building, off Example Road.

## About this section

**Rules.** 15 in this section: 2 mechanical, 13 judgment. Tiers: 6 never, 7 avoid, 2 prefer.

**Where the sources differ.** Neither guide says how to date a screenshot; the stock records a product version beside each one, because nobody rereads an image the way they reread a sentence.

**Sources.** Google developer documentation style guide and Microsoft Writing Style Guide. Adapted under CC BY 4.0, as [Sources and license](https://watership.ca/style-guide/#sources-and-license) sets out.
