What is the alt and why does it matter?
The alt attribute (for alternative text ) describes the content of an image in the HTML code:
If there's a display issue, this text appears in place of the image. Crucially, it's read by assistive technologies (screen readers) and serves as a semantic signal for search engines. When well-written, it improves accessibility, user experience, and SEO.
Accessibility: giving meaning to images
-
Screen readers :
alt textis the spoken description of an image. Without it, the user perceives a meaningless “image…” -
Content understanding : a good
alt textplaces the image in the editorial context, not in an absolute sense. -
Navigation : it avoids dead ends (especially for image links or button icons).
When to use alt="" (empty)
-
Decorative images that provide no information (features, backgrounds, patterns):
They are silenced so as not to interfere with the reading experience.
SEO: a relevant signal, but one to be handled with care
Search engines don't "see" pixels; they interpret what you declare. A alt text :
-
Provides context to the page and image (useful for Google Images).
-
It improves overall relevance if it naturally incorporates the terms of the topic.
-
Avoid keyword stuffing : stay natural, specific, concise.
Good writing practices
-
Describe what the image shows + the intention on the page.
Bad:alt="image of a shoe"
Good:alt="Black leather pointed-toe pumps, Winter 2025 collection" -
Be concise : aim for 5 to 15 words (or ~80–140 characters if necessary).
-
Avoid unnecessary prefixes : no “photo of”, “image of”, “visual of” (the screen reader already announces that it is an image).
-
Adapt to the role of the image :
-
Functional (image-link/button): describe the action, not the image.
-
Logo : use the name of the organization.
-
Infographic/graphic :
alttext + caption or detailed description nearby (<figcaption>(link “Learn more”).
-
-
Language and precision : use the language of the page, clear terms, avoid unnecessary jargon.
-
Images containing text : if the text is essential (e.g., poster), include it in the
alt textor, better yet, in the accessible caption.
Frequent special cases
-
Decorative icons in buttons with pre-existing text :
-
SVG inline : prefer
<title>pour l’accessibilité, etrole="img"si nécessaire. -
Variable product images : dynamically generate a
alt: “Silk midi dress, midnight blue, size 38”.
Common mistakes to avoid
-
Forgetting the attribute : it's an accessibility flaw and a missed SEO opportunity.
-
Vague descriptions : “image”, “photo”, “banner”.
-
Text that is too long or marketing (“the best on the market, incredible…”): stick to the facts.
-
Keyword stuffing : “luxury bag, luxury women’s bag, luxury leather bag” hinders comprehension.
Concrete examples
-
Good practice
-
Bad practice
-
Image link
Editorial integration and process
-
Checklist in the CMS :
alt, contextual help with examples. -
Team training : designers, writers, integrators—everyone must know the “describe the intent” rule.
-
Regular audit : accessibility/SEO tools to identify images without
altor irrelevantalt -
Governance : define who writes, who reviews, and at what time (e.g., during pre-publication QA).
Mini check-up in 7 questions
-
Is the image informative or purely decorative?
-
the
alt textdescribe what is useful in the context of the page? -
Is it concise, natural, without an “image of / photo of”?
-
For an image link, does the
alt textdescribe theaction ? -
For a graph, have I added a legend or a link to the data ?
-
Are the language, spelling, and terminology correct?
-
alt
textprevent keyword stuffing ?
Key points to remember
The alt is a small detail with a big impact: it opens up your content to people who cannot see images, it clarifies your message for search engines, and it enhances the overall quality of your site.
Adopt a simple approach: describe the intent, remain concise, distinguish between informative and decorative images, and establish an audit process. Your accessibility improves, your SEO benefits, and your user experience becomes clearer.
Source: Read the original article