Pular para o conteúdo
Skillpedia
Sites e telas (frontend)75 mil · #3046

table-headers

O que ela faz

Esta skill verifica se tabelas de dados usam células de cabeçalho com o escopo certo. Ela é para desenvolvedores e editores que criam tabelas em sites.

Quando usar

  • ✓Quando uma tabela de dados usa células comuns onde deveriam estar células de cabeçalho.
  • ✓Quando células de cabeçalho não têm atributo scope.
  • ✓Quando uma revisão com leitor de tela diz que a tabela é difícil de entender.

Link da skill

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

Copie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.

Como usar

O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.

Mensagem pronta para colar

Use esta skill para me ajudar: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/table-headers/SKILL.md Leia o arquivo SKILL.md desse link e siga as instruções dele na minha tarefa.
Quer que a sua IA encontre skills como esta sozinha?Instale o MCP grátis do Skillpedia: uma linha, e ela pesquisa entre 15.000+ skills antes de cada tarefa.Instalar em 1 minuto →

Exemplo do que pedir para a IA

“Minha tabela HTML parece boa, mas um leitor de tela a lê de forma confusa. Como corrijo os cabeçalhos?”

5 skills novas por semana. 1 minuto de leitura.

Como funciona

O agente troca as células de cabeçalho pelo elemento de cabeçalho adequado e acrescenta um valor de scope. Isso informa à tecnologia assistiva se cada cabeçalho descreve uma coluna ou uma linha.

Conteúdo técnico (SKILL.md original)

Texto original do autor, em inglês, direto do 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

Perguntas frequentes

O que faz o scope?

O scope informa à tecnologia assistiva se um cabeçalho se aplica a uma coluna ou a uma linha.

Uma tabela simples é corrigida da mesma forma que uma complexa?

Em tabelas simples, a skill diz que corrigir as associações dos cabeçalhos costuma vir primeiro. Tabelas complexas podem exigir mais trabalho.

Qual elemento os cabeçalhos devem usar?

Os cabeçalhos devem usar o elemento th, e não td.

Detalhes

Descrição original do autor

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

Popularidade

Estrelas no GitHub
75 mil
Posição no ranking
#3046
Licença
MIT
Atualizada em
31/10/2026

Essa skill é útil?

0

Entre para votar.

Comentários

  • …

Mais skills deste repositório

Skills parecidas