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

tabindex

하는 일

이 스킬은 웹 페이지에서 tabindex 속성이 어떻게 쓰이는지 확인합니다. 키보드와 스크린 리더로 잘 동작하는 페이지를 원하는 개발자와 편집자를 위한 스킬입니다.

사용하는 경우

  • ✓양수 tabindex 값이 있어 기본 탭 순서가 바뀌어 있을 때.
  • ✓직접 만든 버튼이나 위젯에 Tab 키로 닿을 수 없을 때.
  • ✓접근성 검토에서 초점 순서 문제가 지적되었을 때.

스킬 링크

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

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

사용 방법

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

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

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

AI에게 요청하는 예시

“우리 사이트에서 Tab 키를 누르면 순서가 이상하게 이동합니다. tabindex 설정을 확인해 주실 수 있나요?”

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

작동 방식

에이전트는 자연스러운 순서를 깨뜨리는 tabindex 값을 찾아 바로잡습니다. 직접 만든 컨트롤에는 키보드 사용자가 닿을 수 있도록 값을 0으로 설정합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Use appropriate tabindex values

Incorrect tabindex values can create a confusing navigation experience, making it difficult for keyboard users to predict where focus will move next.

Quick Reference

  • Stick to tabindex="0" for custom interactive elements
  • Use tabindex="-1" for elements that should only be focusable via script
  • Avoid positive values (1, 2, 3...) which break natural tab order

Check

Check for any positive tabindex values and ensure custom interactive elements are focusable.

Fix

Remove positive tabindex values and use tabindex="0" or -1 appropriately.

Explain

Explain why positive tabindex values are problematic for keyboard navigation and user experience.

Code Review

Review the rendered markup and interactive states that affect Use appropriate tabindex values. 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/tabindex

자주 묻는 질문

tabindex 0은 무엇을 하나요?

직접 만든 요소를 페이지 순서에 맞는 자리에서 Tab 키로 닿을 수 있게 합니다.

양수 tabindex는 왜 문제인가요?

요소를 탭 순서의 앞쪽으로 보내서, 키보드 사용자가 페이지 이동을 예측하기 어렵게 만듭니다.

버튼이나 링크 같은 기본 HTML 요소를 먼저 확인해야 하나요?

네. 이 스킬은 기본 HTML 요소가 더 나은 선택인 경우가 많으므로 먼저 확인하라고 말합니다.

상세 정보

작성자의 원본 설명

Use when reviewing rendered HTML, interactive components, or design-system patterns related to Use appropriate tabindex values. 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
순위
#3044
라이선스
MIT
업데이트
2026. 10. 31.

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬