0Pricing
Web Accessibility Academy · درس

شجرة إمكانية الوصول: ما تسمعه قارئات الشاشة

تعرّف إلى كيفية بناء المتصفح شجرة موازية من DOM الخاص بك.

شجرة إمكانية الوصول: ما تسمعه قارئات الشاشة درس مجاني في Web Accessibility Academy على CoddyKit. هذا هو الدرس 3 من أصل 4. يمكنك قراءة الدرس كاملاً أدناه مجاناً — ثم تمرن عليه مباشرة في المتصفح باستخدام محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7. هذا الدرس جزء من مسار التعلم في Web Accessibility Academy، وتقدمك يتزامن عبر الويب وتطبيق CoddyKit. تتضمن دورة Web Accessibility Academy 4 دروس في المجموع.

بعض أجزاء هذا الدرس لم تُترجم بعد وتظهر باللغة الإنجليزية.

A Parallel Tree

The browser turns your DOM into a second structure called the accessibility tree. It is the version assistive tech actually reads.

Built From Your DOM

The accessibility tree is built straight from your HTML. Good semantics in, a rich tree out; div soup in, an empty, useless tree out.

Nodes Have a Role

Each node carries a role that says what it is: button, heading, link, list. A real button gets the button role with no effort from you.

Nodes Have a Name

Every node also has an accessible name, the text a screen reader speaks. For a button it is usually the visible label inside it.

<button>Save changes</button>

Nodes Have State

Interactive nodes expose a state too, like checked, expanded, or disabled. This is how a user hears that a box is already ticked.

Role, Name, State, Value

So each node boils down to role, name, state, and value. That tiny package is everything a screen reader needs to announce an element.

Hidden Things Drop Out

Anything hidden with display none or aria-hidden is pruned from the tree. If it is not in the tree, a screen reader cannot reach it.

<span aria-hidden="true">decorative</span>

Pixels Are Not in the Tree

Visual styling like color and size never enters the accessibility tree. A screen reader user gets meaning and structure, not your layout.

Bad Markup, Broken Tree

A clickable div lands in the tree as a generic node with no role and no name. The user hears nothing useful, even though it looks like a button.

You Can Inspect It

Browser DevTools show the live accessibility tree for any element. It is the fastest way to confirm what a screen reader will actually announce.

Markup Is the Source

The big lesson: your markup is the source of the tree. Fix the HTML and the tree fixes itself, no extra patching required.

Quick Check

Let us test what screen readers hear.

Recap

The accessibility tree is your DOM distilled to role, name, state, and value. Fix the markup and the tree follows. Hidden things drop out. 🎉

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

هل درس «شجرة إمكانية الوصول: ما تسمعه قارئات الشاشة» مجاني؟

نعم — نص درس «شجرة إمكانية الوصول: ما تسمعه قارئات الشاشة» كامل متاح مجاناً هنا على الويب. لتمرينه بشكل تفاعلي (محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7) وفتح باقي دورة Web Accessibility Academy، انتقل إلى CoddyKit PRO. تتضمن دورة Web Accessibility Academy 4 دروس في المجموع.

ماذا ستتعلم في «شجرة إمكانية الوصول: ما تسمعه قارئات الشاشة»؟

تعرّف إلى كيفية بناء المتصفح شجرة موازية من DOM الخاص بك. تتمرن على Web Accessibility Academy مع أكواد عملية تشغلها مباشرة في المتصفح، ومدرس ذكاء اصطناعي متاح 24/7 يجيب على أسئلتك أثناء عملك.

هل أحتاج إلى خبرة سابقة لأبدأ Web Accessibility Academy؟

لا تُشترط خبرة سابقة. Web Accessibility Academy على CoddyKit منظم للمبتدئين حتى المتقدمين، لذا يمكنك البدء من هنا أو من البداية والتقدم بسرعتك الخاصة. هذا هو الدرس 3 من أصل 4.

كم من الوقت يستغرق درس «شجرة إمكانية الوصول: ما تسمعه قارئات الشاشة»؟

معظم دروس CoddyKit تستغرق حوالي 5–10 دقائق. كل منها موجز وتفاعلي، لذا تحرز تقدماً مستمراً وتستأنف من حيث توقفت عبر الويب والتطبيق.

هل يمكنني كتابة وتشغيل أكواد في درس Web Accessibility Academy هذا؟

نعم. كل درس في Web Accessibility Academy يتضمن محرر أكواد مدمج، لذا تكتب وتشغل أكواداً حقيقية مباشرة في متصفحك وتحصل على تعليقات فورية من الذكاء الاصطناعي — بدون إعداد محلي.

جميع الدروس في هذه الدورة

  1. للوسوم دلالات: لماذا يفشل حساء div
  2. عناصر النص: الفقرات والقوائم والتأكيد
  3. شجرة إمكانية الوصول: ما تسمعه قارئات الشاشة
  4. أصلي أم مخصص: متى تختار عنصراً حقيقياً
← العودة إلى Web Accessibility Academy