alt-text
यह क्या करती है
यह स्किल जाँचती है कि पेज की हर इमेज का alt टेक्स्ट उसका उद्देश्य बताता है। यह उन वेब टीमों के लिए है जो चाहती हैं कि इमेज स्क्रीन रीडर उपयोगकर्ता और सर्च इंजन दोनों समझें।
कब इस्तेमाल करें
- ✓जब आप किसी वेब पेज या टेम्पलेट में इमेज जोड़ते हैं।
- ✓जब किसी इमेज का alt फ़ाइल नाम है या बिल्कुल नहीं है।
- ✓जब आप किसी पेज की बुनियादी एक्सेसिबिलिटी की समीक्षा कर रहे हों।
Skill का लिंक
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/alt-text/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरे होमपेज की हर इमेज जाँचें, और जहाँ alt टेक्स्ट नहीं है या अस्पष्ट है, वहाँ बेहतर alt टेक्स्ट लिखें।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट हर इमेज एलिमेंट को देखता है, गायब या सामान्य alt मान चिह्नित करता है, और हर इमेज का पेज पर मतलब देखकर विवरण लिखता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Provide meaningful alt text for images
Approximately 2.2 billion people worldwide have vision impairment. Screen readers read the alt attribute aloud—without 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.
Quick Reference
- Every
<img>must have analtattribute—omitting it entirely violates WCAG 2.1 SC 1.1.1 - Decorative images use
alt=""so screen readers ignore them - Alt text should describe the image's purpose, not just its appearance
- Linked images: alt describes the link destination, not the visual
Check
Scan 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—not 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".
Fix
For each image missing or with poor alt text: 1) Informative images—describe 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—add alt="" so screen readers skip them. 3) Linked images—describe the link destination (e.g., alt="Visit our Twitter profile"). 4) Images of text—copy the text verbatim into alt. 5) Complex images (charts, infographics)—provide a short alt plus a longer description via aria-describedby or a visible caption.
Explain
Explain 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—without 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—omitting alt causes some screen readers to announce the filename.
Code Review
Review 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.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
Rule page: https://frontendchecklist.io/rules/images/alt-text
अक्सर पूछे जाने वाले सवाल
क्या सजावटी इमेज में alt टेक्स्ट होना चाहिए?
नहीं। स्किल कहती है कि सजावटी इमेज में खाली alt मान रखें, ताकि स्क्रीन रीडर उन्हें छोड़ दें।
alt टेक्स्ट सर्च के लिए क्यों मायने रखता है?
स्किल के अनुसार सर्च इंजन भी इमेज की सामग्री समझने के लिए alt टेक्स्ट इस्तेमाल करते हैं।
photo1.jpg जैसे alt टेक्स्ट में क्या गलत है?
यह इमेज के अर्थ के बजाय फ़ाइल का नाम बताता है, इसलिए स्क्रीन रीडर उपयोगकर्ताओं के काम नहीं आता।
जानकारी
लेखक का मूल विवरण
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.
लोकप्रियता
- GitHub स्टार
- 75k
- रैंकिंग में स्थान
- #2718
- लाइसेंस
- MIT
- अपडेट की गई
- 31/10/2026
कमेंट
- …
इस repository की और skills
frontendchecklist
75kकमांड-लाइन टूल से फ़्रंटएंड कोड और लाइव पेजों को एक्सेसिबिलिटी, स्पीड, SEO और सिक्योरिटी के 380 से ज़्यादा नियमों से जाँचती है।
frontend-checklist-global
75kफ़्रंटएंड प्रोजेक्ट को Front-End Checklist के सभी 386 नियमों से ऑडिट करती है, और हर मिली समस्या का ठोस समाधान देती है।
404-page
75kजाँचती है कि आपका गुम पेज उपयोगी लिंक देता है और सही 404 स्टेटस लौटाता है, ताकि भटके हुए विज़िटर रास्ता ढूँढ सकें।
about-page
75kजाँचती है कि आपकी साइट पर एक साफ़ About पेज है जो बताता है कि उसे कौन चलाता है, ताकि विज़िटर और सर्च इंजन का भरोसा बढ़े।
मिलती-जुलती skills
angular-developer
280kआपके एजेंट को Angular code बनाने और प्रोजेक्ट स्ट्रक्चर पर सलाह देने में मदद करता है। नए प्रोजेक्ट शुरू करने, code के हिस्से बनाने, या performance और accessibility सुधारने में उपयोगी है।
frontend-a11y
280kआपके एजेंट को web interfaces को सबके लिए accessible बनाने में मदद करता है। यह सुनिश्चित करता है कि websites और apps screen readers और keyboard navigation के साथ अच्छे से काम करें।
frontend-patterns
280kआपके एजेंट को React और Next.js में frontend development के modern patterns लागू करने में मदद करता है। यह performance optimize करता है, state manage करता है और best practices फॉलो करवाता है।