Every <img> must carry a descriptive alt attribute or an explicit empty alt="" if purely decorative. Inline <svg> used as images (role="img") or icon-only links/buttons must have an accessible name via aria-label, aria-labelledby, or <title>.
<img src="team-photo.jpg" alt="Our design team standing outside the new office building">
<svg role="img" aria-label="Close"></svg>
<svg role="img"><title>Close</title></svg><img src="team-photo.jpg">
<svg role="img"></svg>
<a href="/home"><svg></svg></a>When: An <img> has no alt attribute or its alt is empty, or an inline <svg> used as an image/link/button lacks an accessible name
Warning: Image missing text alternative (alt or accessible name)
Solution: Add descriptive alt text, or add aria-label/aria-labelledby or <title> for inline SVG icons
Accessibility: Missing alt text leaves screen-reader users unaware of image content; null alt on informative images hides key information :contentReference[oaicite:8]{index=8}.
SEO: Without alt text, search engines lack context for images, reducing opportunities to rank in image search :contentReference[oaicite:9]{index=9}.
Ensure that all visual content is perceivable by assistive technologies and remains meaningful when images fail to load, including inline SVG icons.
G94: Providing text alternatives for non-text content using the alt attribute on <img> elements.H67: Using null alt text (alt="") for decorative images, optionally with role="presentation".The alt attribute’s value must convey the content or function of the image—avoid describing its format or filename :contentReference[oaicite:7]{index=7}. Inline SVGs use their accessible name (aria-label/aria-labelledby or <title>) as the text alternative.