Skip to content
WordPress & MCP

How to Choose Article Images and Write Useful Alt Text

Match each article to a relevant image, distinguish diagrams from screenshots, and write alt text that serves the reader instead of stuffing keywords.

Choose images with purpose. An image should help the reader, not merely fill a card.
Original explanatory diagram by OptimaFlow AI; not a product screenshot.

Good alt text says what the image adds to the page in one short sentence — not “image of a chart” but what the chart actually shows. Write for the person listening with a screen reader first, keep it specific and under about 125 characters, and give purely decorative images an empty alt attribute so screen readers skip them.

Decide what the image contributes

Ask what the reader should understand from the image. A process map can show approval points. A calculator guide can show the relationship between time, review effort, and cost. A real screenshot can demonstrate a verified interface action when it is current and appropriately sourced.

Do not use an image merely because it contains an AI symbol. Match its message to the article’s actual question. Different articles deserve distinguishable covers when their purposes differ, even if the site keeps one consistent color palette.

Check rights and presentation

Use assets you own, have permission to use, or can publish under their applicable terms. Do not copy a competitor’s article image because it fits the layout. Keep any required credit or license record with the media.

For generated illustrations, inspect misleading text, invented interfaces, and visual errors. A conceptual image should not look like evidence that a specific product was tested. If it could be misunderstood, add a caption explaining what it represents.

Write alt text for the information

Describe the meaningful content in the context of the page. For a workflow diagram, “Enquiry moves through validation, AI summary, human review, and a draft response” is more useful than “best AI automation tools business workflow.” The latter is a keyword list, not an explanation.

Alt text is not a place to repeat the entire article. Complex diagrams may need a nearby text explanation as well. Purely decorative images can use empty alt text when appropriate, while linked images need an accessible indication of their purpose.

Deliver a suitable image size

Use dimensions and responsive sources suited to the display. A small card does not need to download the full original image. Keep width and height information so the browser can reserve space and reduce layout shifts.

Check the image on a narrow screen. Text embedded in a large diagram may become too small; make sure the article explains the same information in readable text. Avoid placing critical instructions only inside the image.

Review in the saved page

Confirm the media loads, the crop preserves useful content, and the caption is accurate. Check that the right featured image appears in the guide card and article. A filename is not a reliable substitute for viewing the actual asset.

Google’s image guidance discusses descriptive context, alt text, and discoverability. Pair image review with our publication checklist and use clear links to connect the article with related resources.

Example: describe the useful sequence

A guide’s image shows a request moving through input checks, an AI summary, a reviewer, and a draft response. Describe that sequence concisely in alt text. The surrounding article can explain the reasons and exceptions in more detail.

If the same asset is used as a linked card, ensure the link also has a meaningful article title. Do not make a screen-reader user listen to a long marketing keyword list before learning the destination. Review the image and link together in their actual page context.

Watch the mobile crop

A wide image can lose a key label when a card uses a fixed crop. Keep important information away from edges and provide the explanation in normal page text.

Good vs bad alt text: examples by image type

The same photo needs different alt text depending on why it is on the page. A product photo must describe the product; a decorative divider must say nothing at all. Good alt text is short, specific, and describes what the image shows in the context of the page. The table shows the gap for the image types you will meet most often.

Image typeWeak alt textGood alt textWhy it works
Product photoalt="image of a shoe"alt="Red canvas high-top sneaker with white laces"Drops the redundant prefix and describes the actual product
Decorative divideralt="decorative swirl graphic"alt=""Decorative images should be skipped, not announced
Logo linking homealt="logo"alt="OptimaFlow AI — home"It is a link, so describe where it goes, not the picture
Search icon buttonalt="magnifying glass"alt="Search"A functional image gets alt for the action it performs
Bar chartalt="bar chart"alt="Bar chart: organic traffic grew from 2,000 to 8,500 visits, January to June 2026"States the takeaway and the figures, not just the chart type
Graphic with words baked inalt="banner"alt="Sale ends Friday: 20 percent off all plans"The alternative must contain the same text the image shows

Three rules that decide every alt text

First, convey purpose, not pixels: describe what the image is for on this page, not just what it looks like. Second, put the most important information first, because a listener may stop after the first few words. Third, skip “image of” and “picture of” — screen readers already announce the element as an image, so “image of a red sneaker” gets read back as “image, image of a red sneaker”. Length follows from those rules: aim for 8 to 15 words, roughly 125 characters, for most images. Under five words is usually too vague; over 25 words is tiring to listen to. If you need more detail than a sentence allows, the image is probably complex — put the detail in a caption or in the page text instead. A simple test: if you read the page aloud to someone over the phone, what would you say about the image? That sentence is usually the right alt text. Decide the image’s job before you write the words, with our guide to writing an AI prompt brief for the same discipline of stating the purpose first.

Decorative, linked, and functional images need different alt

One rule does not fit all images, because the alt attribute answers a different question in each role. The W3C Web Accessibility Initiative’s alt decision tree walks through these branches one at a time and is the best quick reference when you are unsure. In WCAG terms this is Success Criterion 1.1.1 Non-text Content, Level A — the most basic conformance level there is — which requires a text alternative for non-text content.

Image roleAlt text ruleExample
DecorativeEmpty alt attribute, alt="", so screen readers skip itBackground flourishes, divider lines, stock photos that add no information
Linked imageDescribe the destination — the alt text acts as the link’s anchor textA logo linking home gets the site name plus “home”
Functional icon or buttonName the action, not the pictureA magnifying glass button gets alt="Search"
Complex chart or diagramShort alt with the takeaway, plus the full figures written in the page textAlt states the trend; the numbers live in the article
Image of textAlt contains the same words the image showsA quote graphic repeats its quote in the alt text

One exception to remember: never leave the alt attribute out entirely. Always include the attribute, even when it is empty — a missing attribute makes some screen readers read out the file name instead.

Audit your own pages for missing alt text

Fixing alt text is a small audit, not a rewrite. In WordPress, open the Media Library and check the alt field on each image; in the browser, inspect images or run a site audit tool to list every image with a missing or empty alt attribute. Fix in this order: the homepage, your top guides, then any image inside a link, because a linked image’s alt text is also its anchor text. Re-check after every new article, and add the alt-text check to your approval routine — verify the image’s claims the same way you verify AI-generated content before anything goes live. Decorative images are the most common case where an empty alt is the right call, and they are also the most common audit finding on otherwise finished pages.

Frequently asked questions

Should I put the target keyword in every alt text?

Only when it naturally describes the image. Accessibility and accurate context should guide the wording.

Can a diagram replace all the written steps?

No. Provide a readable explanation of important information, especially when the diagram contains small labels or multiple branches.

How long should alt text be?

About one sentence: 8 to 15 words, roughly 125 characters, for most images. Longer detail belongs in a caption or the surrounding text, not in the alt attribute.

Should I put keywords in alt text?

Only when the keyword is what the picture actually shows. Stuffing a list of search terms reads as spam to Google and to screen-reader users, and Google’s own guidance warns against it.

What alt text does a chart need?

A short alt with the takeaway and the key figures, plus the full numbers written in the page text. “Bar chart” alone tells a listener nothing; the trend and the numbers do.

Do background images need alt text?

No. Images set through CSS carry no alt attribute and search engines do not index them as images, so use a proper image element with alt text for any image that carries information.

Was this guide helpful?

Your selection stays on this page. To send feedback to the publication, use our contact form.

About this publication

From OptimaFlow AI

Practical guides to AI, automation, and better everyday workflows. We use illustrative examples and original diagrams, with AI-assisted writing and illustrations.

Read our editorial approach →About OptimaFlow AI
How to Choose Article Images and Write Useful Alt Text