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

table-headers

Fungsinya

Skill ini memeriksa apakah tabel data menggunakan sel header dengan scope yang tepat. Skill ini cocok untuk developer dan editor yang membuat tabel di situs web.

Kapan dipakai

  • ✓Saat tabel data menggunakan sel biasa di tempat seharusnya ada sel header.
  • ✓Saat sel header tidak memiliki atribut scope.
  • ✓Saat tinjauan pembaca layar menyatakan tabel sulit dipahami.

Link skill

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/table-headers/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/table-headers/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 HTML saya terlihat baik, tetapi pembaca layar membacanya dengan membingungkan. Bagaimana memperbaiki header-nya?”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Agent mengubah sel header menjadi elemen header yang benar dan menambahkan nilai scope. Ini memberi tahu teknologi bantu apakah setiap header menjelaskan kolom atau baris.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

Define proper table headers

Properly defined headers allow screen readers to announce the context for each data cell, making complex tables understandable.

Quick Reference

  • Use <th> for all table headers, not <td>
  • Apply scope="col" or scope="row" to clarify header relationship
  • Ensure every data cell is associated with at least one header
  • In simple tables, prefer fixing header associations before escalating to caption-level recommendations
  • Missing scope="col" on a straightforward header row is often the clearest first fix

Check

Check that all data tables use <th> elements for headers with appropriate scope attributes.

Fix

Convert header cells to <th> and add the correct scope attribute.

Explain

Explain how <th> and scope help assistive technologies communicate the structure of data tables.

Code Review

Review the rendered markup and interactive states that affect Define proper table headers. 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/table-headers

Pertanyaan umum

Apa fungsi scope?

Scope memberi tahu teknologi bantu apakah sebuah header berlaku untuk kolom atau untuk baris.

Apakah tabel sederhana diperbaiki dengan cara yang sama seperti tabel kompleks?

Untuk tabel sederhana, skill menyatakan memperbaiki hubungan header biasanya didahulukan. Tabel kompleks mungkin memerlukan pekerjaan lebih banyak.

Elemen apa yang sebaiknya dipakai untuk header?

Header sebaiknya memakai elemen th, bukan td.

Detail

Deskripsi asli dari pembuat

Use when reviewing rendered HTML, interactive components, or design-system patterns related to Define proper table headers. 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
#3046
Lisensi
MIT
Diperbarui
31/10/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa