THE GITHTML FIELD GUIDE

Label before-and-after screenshots without a slider

Present before-and-after screenshots with explicit labels and a caption explaining the relevant difference. Keep both states available without a draggable comparison slider. A linear arrangement works on small screens and with scripts disabled, while a concise explanation prevents readers from hunting for a visual change they may not perceive.

Choose the right representation

A side-by-side comparison can collapse into an ambiguous stack on a phone. If the states are identified only by left and right, the labels stop making sense. Name the states directly and describe the changed feature rather than the position of the image.

Apply the pattern deliberately

Use a separate figure or clearly labeled group for each state. Keep the crop, scale, and surrounding context comparable unless their difference is itself part of the explanation. Do not let an aesthetic crop remove the label or control that establishes what changed.

  1. Label the states Before and After, or use explicit version names when those are more precise.
  2. Match the comparison area and explain any unavoidable difference in scale or crop.
  3. Describe the meaningful change in text instead of requiring a pixel-by-pixel visual search.
html
<figure><img src="before.png" alt="Old menu with three unlabeled icons"><figcaption>Before: actions had no visible text labels.</figcaption></figure>

Make the comparison fair and independently understandable

Choose the question the pair is meant to answer before taking screenshots. A menu-label change should show the same menu state in both versions, not an empty old screen beside a fully populated new one. Match the viewport and sample data where practical. If a difference in scale, theme, or content is unavoidable, disclose it in the caption so readers do not mistake an unrelated change for the improvement being discussed.

Keep each image attached to its own state label when the layout stacks vertically. Before and After, or explicit version names, remain meaningful after rearrangement; left and right do not. A shared caption can summarize the comparison, but it should not force a reader to guess which image it describes. If a small control is the point of the comparison, provide a readable detail while retaining enough surrounding context to locate that control.

Write the substantive finding as ordinary text. For example, the revised menu adds visible labels to three formerly icon-only actions. That sentence communicates the change when images are unavailable and helps someone decide whether to inspect the screenshots closely. Alt text should describe the relevant image content without mechanically repeating a long caption. Before sharing real captures, review them for private repositories, account names, and incidental notifications. A visual example should not disclose unrelated information just to demonstrate a layout improvement.

Check the finished reading experience

Read only the labels and captions. They should state the substantive difference even before the images are examined. Then check that each screenshot supports the description rather than contradicting it.

Sources and further reading

AI-assisted writing with source-linked guidance and illustrative examples. Read our editorial approach or report a correction.

All reading html on your phone guides →

Read as MarkdownAll guides

Label before-and-after screenshots without a slider · gitHtml