Dans Neova S'exécute à partir du crawl lui-même : rien à configurer.
Règle revue le 17 octobre 2026 · Guide mis à jour le 7 juillet 2026
Le critère WCAG 1.1.1 exige une alternative textuelle. Les lecteurs d'écran annoncent un élément role=img comme une image, et sans nom rien ne la décrit.
Ce que vous pouvez faire
Ajoutez un aria-label ou un aria-labelledby qui décrit l'image.
Pourquoi Neova le signale
Les lecteurs d'écran annoncent role=img comme une image, et sans nom il n'y a rien pour la décrire.
Le critère WCAG 1.1.1 (niveau A) exige une alternative textuelle pour les images porteuses de sens.
Les images décoratives doivent plutôt être masquées ; une image marquée comme porteuse de sens mais sans nom cumule les deux défauts.
This check fires when an element carrying role="img" has no accessible name — no aria-label, no aria-labelledby, nothing. You have told the browser "treat this as a picture," then handed the screen reader a picture with no caption. It gets announced as a bare, meaningless "image," or worse, its inner text nodes leak through in a garbled mess.
Why role="img" Needs a Name and a Plain Img Usually Doesn't
A normal <img> gets its accessible name from the alt attribute. But people apply role="img" to things that are not img elements — inline SVGs, icon-font <span>s, sprite <div>s, emoji clusters, ASCII art. Those elements have no alt attribute to fall back on. When you promote them to the image role, you take on the job of naming them yourself. Skip it and assistive tech has nothing to read out.
The role also does something sneaky: it tells the screen reader to ignore the element's children as content and treat the whole thing as one atomic image. So if you have a decorative icon font that renders a private-use glyph, and you add role="img" with no label, the user hears silence or a spoken code point. Rough.
The aria-label becomes the accessible name. Marking the inner SVGs aria-hidden="true" stops their own guts from being announced twice. Note the label describes the meaning ("Rated 2 out of 5 stars"), not the mechanics ("two filled star shapes"). If the icon is purely decorative — it repeats adjacent visible text — drop the role entirely and add aria-hidden="true" instead of naming it.
Which Naming Method for Which Element
Element You Gave role="img"
Best Naming Method
Also Do
Inline <svg> icon
aria-label on the role="img" host
Hide inner shapes with aria-hidden="true"
Icon-font <span>/<i>
aria-label
Ensure the glyph itself is not read
Sprite / background-image <div>
aria-label or aria-labelledby
—
Emoji sequence (e.g. flags)
aria-label describing the emoji meaning
Wrap in the role="img" span
Decorative, repeats nearby text
No name — remove role, add aria-hidden="true"
Keep it out of the a11y tree
How to Detect It
axe DevTools. The svg-img-alt and role-img-alt rules flag any role="img" with no accessible name, and give you the exact selector.
Lighthouse. The Accessibility audit "ARIA role="img" elements do not have an accessible name" lists every offender.
Screen reader pass. Turn on VoiceOver (Cmd+F5 on macOS) or NVDA, arrow to the element, and listen. If it says "image" and nothing else, it is unnamed.
Console query.document.querySelectorAll('[role="img"]:not([aria-label]):not([aria-labelledby])') returns every element missing a name.
How to Fix It
List every role="img" element from the console query above.
For each, decide: is it meaningful or decorative?
Meaningful → add an aria-label (or aria-labelledby pointing at existing visible text) describing what it conveys.
Decorative → remove role="img" and add aria-hidden="true" so it stays out of the accessibility tree.
Hide inner SVG/glyph nodes with aria-hidden="true" so nothing double-announces.
Re-run axe to confirm zero role-img-alt violations.
Frequently Asked Questions
Can I Use Title Instead of aria-label?
Not reliably. title produces a tooltip and its accessible-name support is inconsistent across screen readers, especially on non-interactive elements. Use aria-label or aria-labelledby; treat title as a bonus, never the primary name.
What's the Difference Between This and a Plain SVG With No Alt?
They overlap. A standalone <svg> intended as an image should carry role="img" plus a name, so the two checks often fire together. The broader SVG rules are covered in SVG Images and Graphics Require Accessible Text.
How Long Should the Label Be?
Long enough to convey the meaning, short enough not to annoy. "Shopping cart," "Rated 2 out of 5 stars," "Verified account." Describe purpose, not pixels. Overlong labels have their own downside — the same discipline as alt text over 100 characters.
Does This Affect Regular Image SEO?
Search crawlers lean on real alt attributes on <img> for image indexing; role="img" plus aria-label is primarily an accessibility signal, not an image-search one. If you want the graphic in image search, use a genuine <img> with alt. Background on that is in the Alt Text glossary entry.
What If the Icon Already Sits Next to a Text Label?
Then it is decorative — do not name it twice. Remove the role and add aria-hidden="true". Duplicate announcements are as bad as missing ones. Related discernible-name logic lives in Links Must Have Discernible Text.
Trouvez ce problème sur votre site
Neova lance ce check et tous les autres à chaque crawl, puis rédige la correction sous forme de ticket pour votre équipe.
Application de bureau pour Mac, Windows et Linux
Les 696 checks, chacun avec sa source
Search Console et Analytics 4, connectés en lecture seule
Tickets vers Jira, Linear et Asana
Télécharger NeovaOffre Desktop Free, ou Solo gratuit pendant 14 jours, sans carte.