0Pricing
Web Accessibility Academy · درس

إتقان عناوين الصفوف والأعمدة

اربطوا كل خلية بعناوينها الصحيحة

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

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

Most Tables Have Two Header Types

Real data usually has headers along the top and down the side. Each data cell sits at the crossing of a column header and a row header.

Every Cell Needs Both

The value 92 means little alone. Tie it to Ada and to Score and it becomes Ada, Score, 92. That pairing is the association you are building.

Column Headers Across the Top

The first row holds scope=col headers. As a user arrows down a column, the screen reader keeps announcing that column header for context.

<tr>
  <th scope="col">Student</th>
  <th scope="col">Score</th>
</tr>

Row Headers Down the Side

The first cell in each body row becomes a scope=row header. It names the row so values get a who or a when as the user reads across.

<tr>
  <th scope="row">Ada</th>
  <td>92</td>
</tr>

The Corner Cell

The top-left cell often sits above row headers and beside column headers. Leaving it as an empty th is fine and keeps the grid honest.

<tr><th></th><th scope="col">Score</th></tr>

Default scope Is a Trap

Browsers try to guess scope, but the guess is unreliable for anything beyond the simplest grid. Always set scope yourself to be sure.

Use thead and tbody

Wrap header rows in thead and data rows in tbody. It clarifies structure for assistive tech and makes your markup far easier to read.

<thead>
  <tr><th scope="col">Name</th></tr>
</thead>
<tbody>
  <tr><th scope="row">Ada</th></tr>
</tbody>

How a Screen Reader Reads It

Move to a data cell and the user hears the row header, the column header, then the value. Good scope is what makes that announcement accurate.

One Header Cell, One Job

Keep a th to a single role: a column header or a row header. Mixing data and labels in one cell muddies the association for everyone.

Test by Reading One Cell

Pick a random data cell and ask: do its headers fully explain it? If you cannot tell what a number means from its headers, your scope is wrong.

A Two-Axis Example

Column headers on top, row headers on the left, data in the middle. This matrix shape covers the vast majority of tables you will build.

<tr><th scope="row">Ada</th><td>92</td><td>88</td></tr>

Quick Check

A user arrows onto a data cell deep inside a well-marked table.

Recap: Two Axes, Two Scopes

Column headers use scope=col, row headers use scope=row, and every data cell sits where they cross. Set scope yourself and never trust the guess.

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

هل درس «إتقان عناوين الصفوف والأعمدة» مجاني؟

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

ماذا ستتعلم في «إتقان عناوين الصفوف والأعمدة»؟

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

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

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

كم من الوقت يستغرق درس «إتقان عناوين الصفوف والأعمدة»؟

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

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

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

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

  1. th وscope وعنصر caption
  2. إتقان عناوين الصفوف والأعمدة
  3. الجداول المعقدة: إقران headers وid
  4. جداول التخطيط فخ
← العودة إلى Web Accessibility Academy