{"data":{"slug":"github-thedaviddias-front-end-checklist-skills-alt-text-e392e957618b","title":"Provide meaningful alt text for images","summary":"Ensure all images have descriptive alt text for accessibility and SEO. Alt text should convey the image's purpose, not just its appearance. This includes checking for missing alt attributes, decorative images using `alt=\"\"`, and ensuring linked images describe the link destination.","url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-alt-text-e392e957618b","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-thedaviddias-front-end-checklist-skills-alt-text-e392e957618b","markdown_url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-alt-text-e392e957618b.md","download_url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-alt-text-e392e957618b\/download","category":{"slug":"content-editorial","name":"Content & Editorial"},"editor_note":"Every `<img>` must have an `alt` attribute\u2014omitting it entirely violates WCAG 2.1 SC 1.1.1. Decorative images must use `alt=\"\"` explicitly so screen readers skip them. Alt text should describe the image's purpose, not just its appearance.","instructions":"---\nname: alt-text\ndescription: \"Use when reviewing image assets, markup, and CDN or build transforms related to Provide meaningful alt text for images. Check encoded size, rendered size, loading strategy, and above-the-fold impact together.\"\nmetadata:\n  category: images\n  priority: critical\n  difficulty: beginner\n  estimatedTime: \"15\"\n  source: frontendchecklist.io\n  url: https:\/\/frontendchecklist.io\/rules\/images\/alt-text\n---\n\n# Provide meaningful alt text for images\n\nApproximately 2.2 billion people worldwide have vision impairment. Screen readers read the alt attribute aloud\u2014without meaningful alt text, users who are blind receive no information about image content. Missing alt text also fails WCAG 2.1 Success Criterion 1.1.1, which is a Level A (minimum) requirement. Search engines also rely on alt text to index image content.\n\n## Quick Reference\n\n- Every `<img>` must have an `alt` attribute\u2014omitting it entirely violates WCAG 2.1 SC 1.1.1\n- Decorative images use `alt=\"\"` so screen readers ignore them\n- Alt text should describe the image's *purpose*, not just its appearance\n- Linked images: alt describes the link destination, not the visual\n\n## Check\n\nScan all <img> elements in the codebase. Verify: 1) Every <img> has an alt attribute (missing alt is an error). 2) Decorative images use alt=\"\". 3) Informative images have descriptive text that conveys the image's meaning\u2014not just its file name. 4) Images that are links describe the destination. 5) Images of text reproduce the text in alt. Flag any <img> without alt, with alt matching the filename (e.g., alt=\"photo1.jpg\"), or with generic values like alt=\"image\" or alt=\"photo\".\n\n## Fix\n\nFor each image missing or with poor alt text: 1) Informative images\u2014describe what the image conveys, not just what it shows (e.g., alt=\"Bar chart showing 40% increase in sales Q3 2024\" not alt=\"chart\"). 2) Decorative images\u2014add alt=\"\" so screen readers skip them. 3) Linked images\u2014describe the link destination (e.g., alt=\"Visit our Twitter profile\"). 4) Images of text\u2014copy the text verbatim into alt. 5) Complex images (charts, infographics)\u2014provide a short alt plus a longer description via aria-describedby or a visible caption.\n\n## Explain\n\nExplain WCAG 2.1 Success Criterion 1.1.1 Non-text Content: every image must have a text alternative. Screen readers announce the alt attribute aloud\u2014without it, users who are blind or have low vision cannot understand the page. Bad alt text (like alt=\"image\") is no better than no alt text. Decorative images must use alt=\"\" explicitly so screen readers skip them entirely\u2014omitting alt causes some screen readers to announce the filename.\n\n## Code Review\n\nReview image assets, markup, and delivery configuration related to Provide meaningful alt text for images. Flag exact files or components where format choice, sizing, or loading behavior violates the rule, and describe how to confirm the fix in DevTools.\n\n---\n\nFor full implementation details, code examples, and framework-specific guidance,\nsee `references\/rule.md`.\n\nRule page: https:\/\/frontendchecklist.io\/rules\/images\/alt-text\n","use_cases":["Reviewing image assets for accessibility compliance","Improving SEO by adding descriptive alt text","Fixing missing or generic alt text in codebases"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/thedaviddias\/Front-End-Checklist\/blob\/e8d14d049010e2ce25afcd5e8609dfcbbe63e47e\/skills\/alt-text\/SKILL.md","source_commit":"e8d14d049010e2ce25afcd5e8609dfcbbe63e47e","license":null,"version":null,"listing_approved_at":"2026-11-23","created_at":"2026-11-22T15:04:17.000000Z","updated_at":"2026-11-23T04:54:23.000000Z","seo_title":"Provide meaningful alt text for images","seo_description":"Ensure all images have descriptive alt text for accessibility and SEO. Alt text should convey the image's purpose, not just its appearance.","seo_keywords":["alt text for images","accessible image alt text","SEO image optimization","image accessibility guidelines","alt text best practices"]}}