Skip to content
TurnIntoCMS

An alt text guide for non-technical site editors

By Yash Garg · · 7 min read

Alt text is invisible copy describing the core meaning or destination of an image for screen reader users and search engines, not visual decoration. When a browser cannot display a graphic, or when assistive software reads a page to a visitor with vision impairments, the alt attribute stands in for the visual element. For non-technical editors swapping photos in a content management system, the job is simple: state the key information the picture conveys, or leave the attribute empty if the graphic is purely decorative.

According to the WebAIM Million analysis, 53.1% of the top one million homepages fail basic WCAG alt text checks, making missing alt text the second most frequent accessibility error across the web. When a screen reader encounters an image, it announces "Graphic" followed by the description, as explained in Penn State's accessibility course notes. Writing phrases like "photo of" or "image of" forces the visitor to hear repetitive phrasing like "Graphic, photo of team meeting." A helpful rule of thumb to share with content editors is the telephone test: imagine describing the webpage to a colleague over the phone, and speak only what the graphic adds to the conversation.

The three image types every editor must recognize

To keep updates fast and accurate, content editors need to categorize every image replacement into one of three buckets before drafting text: informative, functional, or decorative.

1. Informative images

Informative images convey concrete facts, concepts, or visual proof, such as staff portraits, product schematics, and event photos. Editors should summarize the essential takeaway rather than detailing background shapes or colors. A team headshot needs the person's name and job title, not an inventory of their clothing or hairstyle.

When replacing an informative photo, identify the detail a sighted visitor absorbs within two seconds. If an infographic shows quarterly revenue rising by 24 percent, state that percentage change directly rather than describing the chart colors.

2. Functional images

Functional images trigger actions or serve as clickable links. For images used as links, Google uses the alt attribute of the img element as anchor text, as noted in Google Search Central's guide on crawlable links.

Alt text on functional images must name the destination or action rather than visual shapes. A linked magnifying glass icon should carry alt text reading "Search site" instead of "Magnifying glass with black handle." A company logo linking back to the front page should read "Acme Corp home" rather than "Acme corporate triangle logo."

3. Decorative images

Decorative images exist solely for aesthetic polish, page structure, or visual balance. This group includes background flourishes, abstract geometry, corner dividers, and stock illustrations that repeat adjacent copy. Under the W3C WCAG guidelines on non-text content, content that is pure decoration must be implemented in a way that allows it to be ignored by assistive technology.

Omitting the attribute entirely causes screen readers to announce the raw file path, creating distracting noise. Using an empty attribute (`alt=""`) instructs assistive tools to skip the file silently. When building a site handoff process, explaining this empty attribute prevents editors from inventing filler text for divider lines. We outline this structured approach in our guide to client handoffs for digital agencies.

Step-by-step: writing purposeful descriptions for replaced photos

When clients replace existing photos in templates, following a four-step process prevents accessibility gaps and broken layouts:

  1. Check for embedded typography. If a graphic contains baked-in text like an event badge or banner quote, copy the exact wording into the alt attribute. Screen readers cannot parse pixels, so text rendered inside an image must exist in the attribute to remain accessible.
  2. Account for editorial context. The exact same photograph requires different descriptions depending on the page where it appears. A photo of a solar array in an engineering portfolio might read: "Commercial 400-watt monocrystalline solar panels mounted on gravel ballasts." That same photo on a corporate environmental page should read: "Rooftop solar installation at our Austin headquarters that supplies 40% of facility power."
  3. Handle demographic details with care. Avoid guessing personal backgrounds, race, ethnicity, or gender expression. Accessibility guidance in Google's developer documentation advises writers to include demographic information when describing people only if it is critical to the main point of the image. When relevant but unconfirmed, describe observable attributes neutrally, or focus on roles like "pediatric surgeon reviewing charts."
  4. Keep copy concise. Aim for roughly 80 to 125 characters, which amounts to one or two focused sentences. A common industry myth claims that screen readers terminate reading at 125 characters, but modern software reads longer descriptions without truncation. Staying near that range simply keeps audio navigation focused.

Five common mistakes non-technical editors make and their fixes

Even conscientious editors frequently fall into common traps when managing image assets across their pages:

1. Keyword stuffing

Packing search phrases like "best Dallas plumbing emergency repair service" into a headshot harms readability and risks search penalties.

  • The fix: Write natural descriptions, and only include a keyword if it truthfully describes the specific image.

2. Duplicating visible captions

Pasting an adjacent caption or header into the alt field forces screen reader users to hear the same sentence twice in a row.

  • The fix: Let the caption deliver context to everyone, and use alt text only for visual details not already explained in the surrounding text.

3. Accepting auto-filled file names

Many CMS platforms fill empty alt fields with raw file names on upload, producing announcements like "Graphic, Screenshot 2026 04 12 dot png."

  • The fix: Clear automatic file name strings upon upload and replace them with purposeful copy or mark the item as decorative.

4. Using HTML title tooltips

Some editors put descriptions into a CMS "Title" field. Title attributes generate desktop hover tooltips but fail on mobile screens and keyboard navigation.

  • The fix: Use the alt field for accessibility. Leave the title attribute blank unless a secondary browser tooltip is specifically required.

5. Relying on unreviewed AI generation

Automated tagging tools identify generic objects like "a person sitting at a desk," but they miss editorial context and specific names.

  • The fix: Treat AI tags as rough first drafts that require human review before publishing.

Preventing stale alt text across CMS replacements and Git repositories

A frequent operational bug on client-managed websites is stale alt text. In many CMS platforms, adding alternative text for an image in the media library sets the default alt text when you insert the image elsewhere, as one platform's image block documentation. When an editor clicks "Replace Image" on that page, the template often swaps the visual source file while preserving the previous image's inline text override. This leads to errors where a new vice president's headshot retains the name of the executive who retired years earlier.

Content architecture affects how assets sync across platforms. Git-based systems like Decap CMS store content directly in your Git repository alongside your code. Tools like TinaCMS allow you to define collections to model content types on your site, writing a commit back to your Git repository whenever a user makes a change in the CMS. For custom developer workflows, GitHub Apps documentation notes that apps can be granted access to specific repositories with narrow, specific permissions.

For developers managing custom frontends in React, Next.js, or Vite, visual editing tools like TurnIntoCMS offer an alternative path. Clients click images directly in a live preview to update the file and its paired alt text simultaneously, committing changes straight back to GitHub without opening a separate media library. TurnIntoCMS is designed for editing existing page copy and assets in repository code, so it does not provide database storage, scheduled publishing, or a drag-and-drop page builder. Regardless of your setup, share our guidelines for client media uploads to establish clear asset habits early.

A copyable alt text checklist for client handoffs

Use this reference table in your client documentation to show content teams how to handle image updates across common page scenarios:

Image Use CaseCorrect Alt Text StrategyBad ExampleGood Example
Team Member HeadshotName and organizational role`alt="Photo of Mark"``alt="Dr. Mark Reed, Head of Pediatric Surgery"`
Clickable Icon or LogoLink destination or button action`alt="Blue arrow button"``alt="Download 2026 Annual Report"`
Embedded Infographic TextTranscribe key headline and metrics`alt="Data chart showing growth"``alt="Revenue increased 24% between Q1 and Q4 2025"`
Decorative Page PatternEmpty string so screen readers skip`alt="Geometric background line"``alt=""`
Product Catalog ImageCore product name, model, and color`alt="Running shoe buy now best price"``alt="Trail Running Shoe 3 in Forest Green"`

Before saving changes on any template, editors should verify that clicking "Replace Image" has not preserved the text of the older file.

FAQ

How long should alt text be?

Aim for one to two clear sentences containing roughly 80 to 125 characters. This length conveys essential meaning without disrupting the audio navigation of screen reader users.

Does every single image need alt text?

Every image tag requires an alt attribute in the underlying code, but decorative graphics should leave the value empty (`alt=""`). This informs screen readers to skip past the visual decoration quietly.

What is the difference between alt text and a caption?

Alt text is invisible alternative copy read by screen readers and indexed by search engines when images cannot be displayed. A caption is visible on-page copy displayed below the image for all visitors to read.

Should I include target SEO keywords in alt text?

Include keywords only when they naturally and accurately describe what the image shows. Forcing search phrases into alt fields degrades accessibility and risks search ranking penalties.

Sources

  1. WebAIM: The WebAIM Million (webaim.org, checked November 22, 2026)
  2. Understanding Success Criterion 1.1.1: Non-text Content (w3c.github.io, checked November 22, 2026)
  3. ACC100 (courses.worldcampus.psu.edu, checked November 22, 2026)
  4. SEO Link Best Practices for Google (developers.google.com, checked November 22, 2026)
  5. Image block documentation (wordpress.org, checked November 22, 2026)
  6. Write helpful alt text (developers.google.com, checked November 22, 2026)
  7. About creating GitHub Apps (docs.github.com, checked November 22, 2026)
  8. Decap CMS overview (decapcms.org, checked November 22, 2026)
  9. Get Started and learn about TinaCMS (tina.io, checked November 22, 2026)

Related

More from the blog

Let your clients edit the site you coded

One website free. Then $1 each, paid once.

Get started free