Image Alt Text and Accessibility Basics for Small Sites
On this page
- Common Mistakes to Avoid
- What alt text is actually for
- When to leave it empty
- Writing alt text well
- Contrast: the fix most sites need
- Labels on forms
- Keyboard access
- Language and viewport
- Captions on video
- Checking your own site
- A worked example
- The quick wins, in order
- The order that avoids wasted effort
- Why empty alt text is not a gap
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
- Be specific but brief. One sentence, roughly 8-15 words, is the sweet spot.
- Include the reason the image is there. A chart of response times should state the trend, not say "chart".
- Do not start with "image of". The screen reader already says it is an image.
- Skip the keyword stuffing. Repetition helps nobody and reads as spam if a human ever sees it.
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:
- 12 job photographs get specific, one-sentence alt text naming the work and the place.
- 8 icons that sit next to a visible text label get alt="", because the label already says what they mean.
- 14 decorative shapes get alt="" as well.
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
- Alt text on every meaningful image. Highest visibility, lowest effort.
- Body text contrast to at least 4.5:1.
- A real label on every form field.
- A visible focus outline for keyboard users.
- lang on the html element and a viewport meta tag.
- 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
- Contrast on body text and buttons. Affects every visitor, fixes in minutes.
- Form labels. Affects completion, not just accessibility.
- Alt text on meaningful images. Write twelve descriptions, not thirty-four.
- Visible keyboard focus. Restore the outline your theme removed.
- Language and viewport attributes. Two lines in the head.
- 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.
- Writing “image of” or “picture of” first. Screen readers already announce the element as an image, so the phrase is read twice. It also wastes the opening words that carry the most weight. Fix: start with the content: “Plumber tightening a valve under a kitchen sink”.
- Stuffing keywords into every image. Alt text full of keywords reads as nonsense aloud, and it is a spam signal to search engines. It also fails the person who actually needed the description. Fix: describe what the image shows, once, in plain language.
- Leaving alt empty on functional images. A button rendered as an image with
alt=””becomes unlabelled. The screen reader user hears nothing and cannot use it. Fix: give functional images the action they perform: “Search”, “Print report”. - Treating decorative imagery as content. Filling alt on background flourishes adds noise to every page. It makes the whole experience slower and more tiring to listen to. Fix: use
alt=””for decoration so assistive tech skips it. - Stopping at alt text and calling it done. Alt text is one of a dozen accessibility basics. A page can pass on alt text and still be unusable: no focus ring, 3:1 contrast, tiny tap targets. Fix: run a full pass: contrast, keyboard order, labels, and heading structure.
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 type | What to write |
|---|---|
| Logo linking home | “Website Checkmate home” |
| Informative chart | The one-sentence takeaway, not the axis labels |
| Screenshot in a tutorial | What the screenshot proves |
| Decorative divider | Empty alt so it is skipped |
| Product photo | Product 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.
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.
CHECK MY WEBSITE