Langsung ke konten
Skillpedia
Website & UI (frontend)75k · #3048

td-headers-attr

Fungsinya

Skill ini memeriksa atribut headers pada sel tabel dalam tabel yang kompleks. Skill ini cocok untuk developer yang membuat tabel dengan lebih dari satu tingkat heading.

Kapan dipakai

  • ✓Saat tabel memiliki header bertingkat yang tidak dijelaskan dengan baik oleh scope saja.
  • ✓Saat sel menggunakan atribut headers yang menunjuk ke ID yang tidak ada.
  • ✓Saat tinjauan pembaca layar menyatakan tabel kompleks membingungkan.

Link skill

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

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/td-headers-attr/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit →

Contoh permintaan ke AI

“Tabel keuangan saya memiliki dua baris header dan pembaca layar menjadi bingung. Bisakah Anda menghubungkan setiap sel ke header yang tepat?”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Agent memeriksa apakah atribut headers pada setiap sel mencantumkan ID header yang valid. Agent lalu memperbaiki referensi yang salah atau hilang.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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

Pertanyaan umum

Kapan sebaiknya memakai headers alih-alih scope?

Skill menyatakan gunakan headers ketika scope tidak cukup, seperti pada tabel dengan beberapa tingkat header.

Apa yang terjadi jika sebuah ID tidak ada?

Referensinya rusak, sehingga tabel tidak dapat menjelaskan sel tersebut dengan benar kepada teknologi bantu.

Bisakah satu sel menunjuk ke lebih dari satu header?

Bisa. Beberapa ID header dapat dicantumkan, dipisahkan dengan spasi.

Detail

Deskripsi asli dari pembuat

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

Popularitas

Bintang GitHub
75k
Peringkat
#3048
Lisensi
MIT
Diperbarui
31/10/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa