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

td-headers-attr

ما الذي تفعله

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

متى تستخدمها

  • ✓عندما يحتوي الجدول على عناوين متعددة المستويات لا يصفها النطاق وحده بشكل جيد.
  • ✓عندما تستخدم الخلايا سمات headers تشير إلى معرّفات غير موجودة.
  • ✓عندما تقول مراجعة قارئ الشاشة إن الجدول المعقد مربك.

رابط المهارة

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/td-headers-attr/SKILL.md

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

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

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

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

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

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

“جدولي المالي فيه صفان من العناوين وقارئ الشاشة يتشوش. هل يمكنك ربط كل خلية بالعناوين الصحيحة؟”

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

كيف تعمل

يتحقق الوكيل من أن سمة headers في كل خلية تسرد معرّفات عناوين صالحة. ثم يصحح المراجع الخاطئة أو الناقصة.

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

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

Link table cells to headers using IDs

In complex tables with multi-level headers, explicit header-to-cell linking ensures screen readers accurately announce the relationship between data and its context.

Quick Reference

  • Use the headers attribute for complex tables where scope isn't enough
  • Ensure the headers attribute references valid id values of <th> elements
  • Separate multiple header IDs with spaces

Check

Verify that td headers attributes reference valid and existing th IDs.

Fix

Correct the headers attribute to reference the appropriate th IDs.

Explain

Explain when to use the headers attribute instead of scope for complex table structures.

Code Review

Review the rendered markup and interactive states that affect Link table cells to headers using IDs. 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/td-headers-attr

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

متى أستخدم headers بدلًا من scope؟

تقول المهارة إن headers يُستخدم عندما لا تكفي scope، مثل الجداول التي تحتوي على عدة مستويات من العناوين.

ماذا يحدث إذا لم يكن المعرّف موجودًا؟

تصبح الإشارة مكسورة، فلا يستطيع الجدول وصف تلك الخلية بشكل صحيح للتقنيات المساعدة.

هل يمكن لخلية واحدة أن تشير إلى أكثر من عنوان؟

نعم. يمكن سرد عدة معرّفات للعناوين مفصولة بمسافات.

التفاصيل

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

Use when reviewing rendered HTML, interactive components, or design-system patterns related to Link table cells to headers using IDs. 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
الترتيب
#3048
الترخيص
MIT
آخر تحديث
31‏/10‏/2026

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

0

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

التعليقات

  • …

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

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