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

aria-input-field-name

하는 일

이 스킬은 텍스트 상자, 텍스트 영역, 드롭다운에 적절한 라벨이 있는지 확인합니다. 모두가 각 필드의 용도를 알기를 원하는 폼 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓텍스트 입력란, 텍스트 영역, 선택 메뉴가 있는 폼을 만들 때.
  • ✓필드에 자리 표시 글자만 있고 라벨이 없을 때.
  • ✓음성 제어나 스크린 리더 사용을 위해 폼을 검토할 때.

스킬 링크

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/aria-input-field-name/SKILL.md

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

사용 방법

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

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

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

AI에게 요청하는 예시

“제 결제 폼을 확인해서 모든 필드에 연결된 올바른 라벨이 있는지 확인해 주세요.”

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

작동 방식

에이전트는 id로 연결된 label 요소나, 각 필드의 aria-label 또는 aria-labelledby를 찾고, 자리 표시 글자에만 의존하는 필드를 표시합니다.

기술 내용 (원본 SKILL.md)

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

Ensure all input fields have accessible names

Screen readers announce the accessible name of a focused input before the user types. Without a name, VoiceOver reads 'text field' and NVDA reads 'edit' with no context, making it impossible for blind users to fill out forms correctly. Voice control users (Dragon NaturallySpeaking) also need the visible label text to match the accessible name so they can say 'click Email Address' to move focus to the field.

Quick Reference

  • Every <input>, <textarea>, and <select> must have a programmatically associated accessible name
  • Preferred: associate a <label> via matching for/id attributes
  • Alternatives: aria-label (inline string) or aria-labelledby (references another element's id)
  • Placeholder text is not an accessible name — it disappears on input and is not reliably announced
  • Applies to WCAG 2.1 SC 1.3.1 (Info and Relationships) and SC 4.1.2 (Name, Role, Value)

Check

Find all <input> (excluding type='hidden'), <textarea>, and <select> elements. For each, check that one of these is true: (1) a <label> element with a for attribute matching the input's id exists, (2) the input has a non-empty aria-label attribute, or (3) the input has an aria-labelledby attribute pointing to a visible element. Flag any that use only placeholder as their label. Also check custom widgets using role=textbox, role=combobox, etc.

Fix

For each unlabeled input: (1) Add a <label for='input-id'>Label text</label> and matching id on the input — this is the most robust method. (2) If a visible label is impractical (e.g., search bar), add aria-label='Search' directly on the input. (3) If the label text already exists elsewhere in the DOM, add aria-labelledby='label-element-id' to the input. Remove placeholder as a substitute for a label; keep placeholder only as a hint for expected format.

Explain

WCAG 2.1 SC 4.1.2 (Name, Role, Value) requires that all user interface components have an accessible name. For form inputs, the accessible name is computed from: (1) aria-labelledby → (2) aria-label → (3) associated <label> → (4) title attribute (last resort). Screen readers announce this name when the input receives focus. Without it, a blind user hears only the input type ('text field') with no indication of what to type. Dragon NaturallySpeaking users need the accessible name to match visible text so voice commands work.

Code Review

Review the rendered markup and interactive states that affect Ensure all input fields have accessible names. 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/aria-input-field-name

자주 묻는 질문

자리 표시 글자만으로는 왜 부족한가요?

사용자가 입력하면 자리 표시 글자가 사라지고, 안정적으로 읽히지도 않는다고 스킬이 설명합니다.

필드에 라벨을 붙이는 권장 방법은 무엇인가요?

for와 id 속성을 맞춰 연결한 label 요소입니다.

음성 제어 사용자에게도 라벨이 필요한가요?

네. 음성 제어 사용자는 보이는 라벨 텍스트를 말해서 필드에 도달한다고 스킬이 설명합니다.

상세 정보

작성자의 원본 설명

Use when applies to all `<input>` (except type=hidden), `<textarea>`, `<select>`, and custom form widgets using role=textbox, role=combobox, role=spinbutton, role=searchbox, or role=listbox.

repo: thedaviddias/Front-End-Checklist

인기도

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

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬