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

empty-links

ما الذي تفعله

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

متى تستخدمها

  • ✓عندما تعلن قارئة الشاشة كلمة «link» وحدها دون أي سياق.
  • ✓عندما تحتوي الصفحة على روابط أيقونات بلا وصف نصي.
  • ✓عندما تراجع الروابط للتحقق من الوجهات المكسورة قبل الإطلاق.

رابط المهارة

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/empty-links/SKILL.md

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

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

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

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

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

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

“هل يمكنك فحص صفحتي للروابط التي ليس لها نص مقروء؟”

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

كيف تعمل

يبحث الوكيل عن الروابط التي لا تحتوي نصًا ظاهرًا ولا تسمية قابلة للوصول. ويقترح إضافة نص أو aria-label، وإصلاح الروابط المكسورة أو حذفها.

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

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

Fix empty and broken links

Screen readers announce empty links as just 'link' with no context—users have no idea where they lead or what they do, making navigation impossible.

Quick Reference

  • Every link must have accessible text (visible or via aria-label)
  • Icon-only links need aria-label describing the destination
  • Empty anchor tags are completely inaccessible—always add content
  • Use visually-hidden text when visual labels aren't desired

Check

Scan for links with no text content (empty anchor tags, icon-only links without labels). Verify all links have accessible names via text content, aria-label, or aria-labelledby. Check for broken link destinations.

Fix

Add descriptive text to empty links. For icon-only links, add aria-label describing the destination. Use visually-hidden text if visible labels are not desired. Remove or fix broken links.

Explain

Explain how screen readers announce empty links as just 'link' with no context, leaving users unable to understand where the link leads or what action it performs.

Code Review

Review the rendered markup and interactive states that affect Fix empty and broken links. 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/empty-links

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

لماذا يمثل الرابط الفارغ مشكلة؟

تعلنه قارئة الشاشة بكلمة link فقط، فلا يعرف المستخدم إلى أين يقود.

ما الحل للرابط الذي يحتوي أيقونة فقط؟

تقترح المهارة إضافة aria-label يصف الوجهة.

هل تتحقق من أن الروابط تعمل؟

تقول المهارة إن عليك البحث عن وجهات الروابط المكسورة، إلى جانب الأسماء الناقصة.

التفاصيل

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

Use when reviewing rendered HTML, interactive components, or design-system patterns related to Fix empty and broken links. 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
الترتيب
#2832
الترخيص
MIT
آخر تحديث
31‏/10‏/2026

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

0

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

التعليقات

  • …

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

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