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

heading-hierarchy

ما الذي تفعله

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

متى تستخدمها

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

رابط المهارة

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

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

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

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

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

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

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

“هل يمكنك التحقق من أن عناوين صفحتي تتبع ترتيبًا منطقيًا؟”

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

كيف تعمل

يراجع الوكيل مستويات العناوين ويتحقق من وجود عنوان رئيسي واحد وعدم تخطي أي مستوى. ويقترح تغيير المستويات عند الحاجة، واستخدام CSS للحجم المرئي.

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

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

Use logical heading hierarchy

Screen reader users navigate by headings like a table of contents—skipping levels or poor hierarchy makes content impossible to understand and navigate.

Quick Reference

  • Use exactly one h1 per page for the main title
  • Never skip heading levels (h1 → h2 → h3, not h1 → h3)
  • Heading text should describe the content that follows
  • Don't use headings for visual styling—use CSS instead

Check

Verify pages have exactly one h1, headings follow sequential order without skipping levels (h1 → h2 → h3), and heading text clearly describes the content that follows. Use accessibility tools to generate a heading outline.

Fix

Structure headings to reflect content hierarchy. Start with h1 for the page title, use h2 for major sections, h3 for subsections. Never skip heading levels or use headings purely for visual styling.

Explain

Explain how screen reader users navigate by headings like a table of contents, and why skipped levels or missing structure forces users to work harder to understand page organization.

Code Review

Review the rendered markup and interactive states that affect Use logical heading hierarchy. 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/heading-hierarchy

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

لماذا يهم تخطي مستوى العنوان؟

يتنقل مستخدمو قارئات الشاشة بالعناوين، فالقفز يجعل مخطط الصفحة أصعب في الفهم.

هل يجب أن تحتوي الصفحة على أكثر من h1؟

تقول المهارة إنه يجب استخدام h1 واحد بالضبط لكل صفحة للعنوان الرئيسي.

كيف يمكن فحص المخطط؟

تقترح المهارة أدوات إمكانية الوصول التي تولّد مخطط العناوين.

التفاصيل

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

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

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

0

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

التعليقات

  • …

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

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