Skillpedia
المواقع والواجهات (frontend)75k · #2893

input-image-alt

ما الذي تفعله

تتحقق هذه المهارة من أزرار الصور في الصفحة بحثًا عن وصف نصي ذي معنى. وهي موجهة للمطورين الذين يبنون النماذج وعناصر التحكم المعتمدة على الصور.

متى تستخدمها

  • ✓عندما يكون زر البحث أو الإرسال صورة دون نص بديل.
  • ✓عندما يقرأ قارئ الشاشة اسم ملف الصورة بدلًا من غرض الزر.
  • ✓عندما تراجع ترميز النموذج من ناحية إمكانية الوصول.

رابط المهارة

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/input-image-alt/SKILL.md

انسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.

طريقة الاستخدام

أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.

رسالة جاهزة للصق

استخدم هذه المهارة لمساعدتي: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/input-image-alt/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

مثال على ما تطلبه من الذكاء الاصطناعي

“هل يمكنك التحقق من أن أزرار الصور لدي تحتوي على نص بديل مناسب؟”

5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.

كيف تعمل

يجد الوكيل عناصر إدخال الصور ويتحقق من أن لكل منها سمة alt غير فارغة. ويقترح نصًا يصف الإجراء، مثل «بحث».

المحتوى التقني (ملف SKILL.md الأصلي)

النص الأصلي من المؤلف، مباشرة من GitHub.

Provide alt text for image buttons

Without alt text, screen readers may read the file name of the image, leaving users unable to determine the function of the button.

Quick Reference

  • Add an alt attribute to <input type='image'>
  • Describe the action of the button, not just the image
  • Ensures the button's purpose is clear to assistive technology

Check

Verify that all <input type='image'> elements have a non-empty 'alt' attribute.

Fix

Add an 'alt' attribute to the <input type='image'> that describes the action performed when the button is clicked (e.g., 'Search', 'Submit').

Explain

Explain why image buttons require alternative text to communicate their function to users who cannot see the image.

Code Review

Review the rendered markup and interactive states that affect Provide alt text for image buttons. Flag exact elements, roles, labels, focus behavior, or keyboard interactions that violate the rule, and note how to verify the fix with browser accessibility tooling or assistive tech.


For full implementation details, code examples, and framework-specific guidance, see references/rule.md.

Rule page: https://frontendchecklist.io/rules/accessibility/input-image-alt

الأسئلة الشائعة

لماذا يُوصف الإجراء وليس الصورة؟

تقول المهارة إن النص البديل يجب أن يخبر المستخدم بما يفعله الزر عند النقر عليه.

ماذا يحدث بدون نص بديل؟

قد يقرأ قارئ الشاشة اسم ملف الصورة، وهذا لا يشرح وظيفة الزر.

كيف يمكن التأكد من الإصلاح؟

تقترح المهارة أدوات إمكانية الوصول في المتصفح أو التقنيات المساعدة.

التفاصيل

الوصف الأصلي من المؤلف

Use when reviewing rendered HTML, interactive components, or design-system patterns related to Provide alt text for image buttons. Check native semantics first, then inspect keyboard behavior, focus flow, accessible names, and screen-reader output where relevant.

repo: thedaviddias/Front-End-Checklist

الشعبية

نجوم GitHub
75k
الترتيب
#2893
الترخيص
MIT
آخر تحديث
31‏/10‏/2026

هل هذه المهارة مفيدة؟

0

سجّل الدخول للتصويت.

التعليقات

  • …

المزيد من المهارات من هذا المستودع

مهارات مشابهة