Accessible Name and Role Debugger
Paste HTML to get a table of roles and computed names, a step-by-step trace of the naming algorithm for each element, and fixes for empty or mismatched names.
브라우저에서 실행됩니다. 파일은 기기 밖으로 나가지 않습니다. 확인하는 방법 보기
…
사용 방법
- 1Paste HTML
Paste a component, a form or a whole page.
- 2Scan the table
Look for rows with no name or with error and warning badges.
- 3Open the trace
Select a row to see every naming source and the one that won.
- 4Read the issues
Use the issue list to jump to each failing element.
- 5Fix the markup
Add labels, alt text or aria-label that starts with the visible text.
- 6Export
Download the table as CSV for your accessibility report.
이 도구 소개
Every button, link, form field and image has an accessible name: the words a screen reader announces and the phrase a voice-control user says to activate it. The browser computes that name with a fixed algorithm. It first looks at aria-labelledby, then aria-label, then the native labelling of the element (a label element for an input, alt for an image, legend for a fieldset, caption for a table), then, for roles such as button and link, the text content inside, and finally title or placeholder as a last resort. Whichever step finds text first wins, and everything after it is ignored. That is why an aria-label silently overrides a visible label, and why an icon button with only an SVG inside has no name at all. This debugger runs the same steps on pasted HTML, shows each candidate source and which one won, and flags the problems that follow from it.
The names table
After you paste HTML, every control and image appears in a table with its line, role, computed name and the source of that name. Roles come from the role attribute or from the element's implicit role, for example textbox for a text input, combobox for a select, link for an a with href and banner for a page-level header. Tick include every element to see all elements, or show only problems to focus on the failures. The table downloads as CSV.
The trace
Select a row to see how its name was computed, step by step: each source the algorithm considered, the text it found, whether it was used, and notes such as an aria-labelledby that points to a missing id, an empty aria-label that is ignored, or an empty alt that marks an image as decorative. Below the trace you see the role, name, description from aria-describedby and the visible text, a rough line of what a screen reader would say, and the source code with the element highlighted.
What it flags
Buttons, links, form fields, iframes and elements with widget roles that have no name; images without alt; names that come only from a placeholder or a title tooltip; aria-labelledby with missing ids; focusable elements inside aria-hidden; a role attribute that repeats the native role; vague names such as Read more or Click here; alt text that is a file name; and, for WCAG 2.5.3 Label in Name, an aria-label that does not contain the visible text.
Limits
The computation follows the common paths of accname 1.2 but is not a full browser implementation: CSS generated content, names from embedded controls such as a select inside a label, shadow DOM and names set by JavaScript at run time are not included, and hiding by external CSS is not seen. Check edge cases with the accessibility pane of your browser's DevTools.
풀이 예시
A sign-in form has a labelled email field, a search box with only a placeholder, a checkbox wrapped in its label, a Sign in button, a Cancel button with aria-label Close dialog, an SVG icon button and a trash icon with a title. The table shows names for most rows, but flags five problems: the search box is named only by its placeholder, the icon button has no name, the trash button's name comes only from the title, the link to the promo page is empty, and Close dialog does not contain the visible word Cancel, which breaks voice commands. The spinbutton labelled by qty-label and qty-unit still gets the name Quantity, but the trace shows that qty-unit does not exist.
한눈에 보기
- 카테고리: 개발 및 데이터
- 브라우저에서 실행되며 가입도 업로드도 필요 없습니다.
- 입력한 정보는 기기에 머뭅니다.
- 영어로 제공됩니다.
- 콘텐츠 최종 검토일:
- 공식 출처: W3C Accessible Name and Description Computation 1.2 and HTML-AAM
자주 묻는 질문
What is an accessible name?
The short text that identifies an element to assistive technology, such as the words announced for a button or the label read for a form field.
Why is my visible label ignored?
Because a higher step won. aria-labelledby and aria-label are checked before the label element and the text inside, so they replace it completely.
What is Label in Name?
WCAG 2.5.3 requires that the accessible name of a control with visible text contains that text, so voice-control users can say what they see.
Is placeholder a valid label?
It is used as a last resort, but it disappears while typing and often has low contrast. Use a visible label element instead.
What is the difference between name and description?
The name identifies the element; the description adds extra information and is read after it. aria-describedby provides a description, not a name.
Does my HTML leave the browser?
No. The analysis runs locally and the pasted code is stored only as a draft on this device.
