본문으로 건너뛰기
Skillpedia
웹사이트 및 UI (프런트엔드)75k · #3046

table-headers

하는 일

이 스킬은 데이터 표가 올바른 scope를 가진 머리글 셀을 쓰는지 확인합니다. 웹사이트의 표를 만드는 개발자와 편집자를 위한 스킬입니다.

사용하는 경우

  • ✓데이터 표에서 머리글이어야 할 자리에 일반 셀이 쓰였을 때.
  • ✓머리글 셀에 scope 속성이 없을 때.
  • ✓스크린 리더 검토에서 표를 이해하기 어렵다고 나올 때.

스킬 링크

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

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/table-headers/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“HTML 표는 겉보기에는 괜찮은데 스크린 리더가 이상하게 읽습니다. 머리글을 어떻게 고쳐야 하나요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 머리글 셀을 알맞은 머리글 요소로 바꾸고 scope 값을 추가합니다. 그래서 보조 기술이 각 머리글이 열을 설명하는지 행을 설명하는지 알 수 있습니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 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

자주 묻는 질문

scope는 무엇을 하나요?

머리글이 열에 적용되는지 행에 적용되는지를 보조 기술에 알려 줍니다.

간단한 표와 복잡한 표를 같은 방식으로 고치나요?

간단한 표는 보통 머리글 연결을 먼저 고치면 됩니다. 복잡한 표는 더 많은 작업이 필요할 수 있다고 이 스킬은 설명합니다.

머리글은 어떤 요소를 써야 하나요?

td가 아니라 th 요소를 써야 합니다.

상세 정보

작성자의 원본 설명

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

인기도

GitHub 스타
75k
순위
#3046
라이선스
MIT
업데이트
2026. 10. 31.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬