GUIDE

Image Alt Text and Accessibility Basics for Small Sites

Accessibility has a reputation for being expensive, which is why it gets postponed. In practice the first six fixes cover most of the real benefit, cost very little, and make the site better for everyone: readable on a phone in sunlight, usable with one thumb, findable by a screen reader.

What alt text is actually for

Alt text is not an SEO trick and it is not a caption. It is what a screen reader announces in place of an image, and what appears if the image fails to load. That single fact settles most debates about it.

So describe the function, not the file. For a photograph of a finished bathroom, "Completed bathroom refit in Locust Grove, tiled shower and new vanity" tells a blind visitor what they would have learned by looking. "bathroom-final-2.jpg" tells them nothing.

When to leave it empty

Decorative images should have alt="" — present but empty. A screen reader skips them, which is correct. Background flourishes, divider graphics and stock photos that carry no information belong in this category.

The common mistake is the opposite: an alt attribute that repeats the caption, or worse, the filename. Both create noise for the people who rely on the text.

Writing alt text well

Contrast: the fix most sites need

Grey text on white at 13px is the single most common accessibility failure on small business sites. The threshold to aim for is a contrast ratio of 4.5:1 for body text. In practice, that means dark grey rather than light grey, and it means checking the text over a photograph rather than over the design mockup.

Test the two places people actually read: your body text and your button labels. Buttons with white text on a pale brand colour fail constantly.

Labels on forms

A form field with only a placeholder is not labelled. The placeholder disappears as soon as someone types, and screen readers may not announce it at all. Every field needs a real <label> tied to it with a matching for and id.

This is also a conversion issue: labelled fields are easier to complete, and the label can carry the hint that stops someone abandoning the form.

Keyboard access

Try to complete your main action using only the Tab key and Enter. If you cannot reach the button, or you cannot see which element is focused, the site is unusable for anyone who does not use a mouse. The fix is a visible focus outline, which many themes remove for aesthetic reasons.

Language and viewport

Two attributes do a lot of quiet work. lang="en" on the html element tells a screen reader which pronunciation rules to use, and a viewport meta tag prevents the page rendering at desktop width and shrinking, which is what makes text tiny on phones.

Captions on video

If you have any video, captions are not optional: a large share of people watch with sound off in public. Auto-generated captions are a reasonable start but should be corrected, because trade vocabulary is exactly what speech recognition gets wrong.

Checking your own site

The free audit checks alt-text coverage, the language attribute, the viewport tag and form labelling, and reports percentages rather than a vague verdict. Start with whichever percentage is lowest; the first pass usually takes under an hour and covers most of the benefit.

A worked example

A trades site has 34 images on the homepage: 12 photographs of completed jobs, 8 icons, 14 decorative shapes. An accessibility check reports 35% alt coverage.

The fix is not 34 descriptions. It is:

Coverage goes to 100%, but only 12 descriptions were written. That is the correct outcome: empty alt is a decision, not a gap.

The quick wins, in order

  1. Alt text on every meaningful image. Highest visibility, lowest effort.
  2. Body text contrast to at least 4.5:1.
  3. A real label on every form field.
  4. A visible focus outline for keyboard users.
  5. lang on the html element and a viewport meta tag.
  6. Captions on any video.

The free audit reports the first, fourth and fifth automatically and gives you percentages, so you can see the gap rather than guess at it.

The order that avoids wasted effort

  1. Contrast on body text and buttons. Affects every visitor, fixes in minutes.
  2. Form labels. Affects completion, not just accessibility.
  3. Alt text on meaningful images. Write twelve descriptions, not thirty-four.
  4. Visible keyboard focus. Restore the outline your theme removed.
  5. Language and viewport attributes. Two lines in the head.
  6. Captions on any video you publish.

That sequence covers most of the real benefit. The remaining items matter for full compliance, and they are worth doing deliberately rather than in a rush at the end.

Why empty alt text is not a gap

A decorative image with alt="" is correctly labelled. A decorative image with a description is noise for a screen-reader user, who hears a paragraph about a shape. The audit counts coverage, so read the coverage number alongside your image inventory before assuming every missing description needs writing.

Common Mistakes to Avoid

Alt text is the most misunderstood attribute on the web. These five mistakes cover almost everything that goes wrong, and each one takes minutes to correct.

Accessibility work has a useful side effect that keeps owners interested: the same fixes improve Core Web Vitals and crawlability. Labelled controls, described images and clean heading order help every visitor, not only those using assistive technology.

Alt text, done properly

Image typeWhat to write
Logo linking home“Website Checkmate home”
Informative chartThe one-sentence takeaway, not the axis labels
Screenshot in a tutorialWhat the screenshot proves
Decorative dividerEmpty alt so it is skipped
Product photoProduct name plus the distinguishing detail

Once alt text is in place, the next most valuable check is contrast and focus order. The website accessibility checklist runs through the full list in a sensible order, and the free website check flags the failures it can detect automatically on any page.

Check it yourself: run the speed test, or open the accessibility checklist. Both are free and need no sign-up.

Frequently asked

Does alt text help SEO?

It helps image search and it helps a screen reader, which is the real reason to write it. Treat any ranking benefit as a side effect.

How long should alt text be?

Roughly 8-15 words. Long enough to convey the information, short enough not to be tedious when read aloud.

Should every image have alt text?

Every meaningful image yes; decorative images should have an empty alt so they are skipped.

Is accessibility legally required?

It depends on your jurisdiction and sector. Public sector sites usually have explicit obligations; private sites increasingly face them too.

Does alt text help SEO?

Indirectly. It helps image search and it makes pages usable, which is what rankings follow. Keyword-stuffed alt text does not lift rankings and can count against you.

What about images added by CSS?

Background images are invisible to assistive technology, so any image carrying meaning belongs in the HTML as an <img> with alt text, styled however you like.

Run the checks yourself. The free audit scores your page on 24 tests and tells you what to fix: check any website. For one specific problem, the link checker, speed test, meta checker and security checker each go deeper on their own.

Written by Anthony Bailey · Anthony Bailey is a publisher, retired professor and computer technologist. He writes the guides on Website Checkmate and has spent his career explaining technical subjects to people who never signed up to be technical.