Web accessibility
Доступность
Web accessibility means building websites and apps that people with disabilities can read, navigate, and use, including with a keyboard or assistive technology such as a screen reader.
Also known as: a11y, accessibility
What does an accessible website let people do?
A user should be able to complete a task even if they can't see the screen, hear the audio, or use a mouse. On a ticketing site, that means more than being able to read the event listing: users also need to choose a seat, find and fix payment errors, and confirm the booking. Accessibility is often shortened to a11y: there are 11 letters between the a and the y.
What the browser provides
The browser uses the page's markup, styles, and ARIA attributes to build an accessibility tree. Assistive technologies such as screen readers use it to find out what an element is (its role), what it's called (its accessible name), and, where relevant, what state it's in. A screen reader can announce “Email updates, checkbox, checked” without the user having to see the check mark.
Start with native HTML. A link with an href takes users somewhere; a button performs an action. A native button already supports keyboard focus and activation. Adding role="button" to a div exposes the role, but doesn't make it focusable or give it keyboard behavior. Use ARIA to supply information that native markup doesn't express, not to replace behavior that HTML already provides.
Example: a button with no visible text
<button type="button" aria-label="Close dialog">
<span aria-hidden="true">×</span>
</button>
The button's accessible name is “Close dialog,” rather than whatever a screen reader makes of the multiplication sign. The native button provides keyboard activation; the application still needs to handle the click and close the dialog. If the design can accommodate visible text, a plain button labeled “Close” is easier to understand without relying on the icon.
How to check a real workflow
Try the task using only the keyboard. Can you tell where focus is? Does it advance in a sensible order? Next, use a screen reader and check whether control names, states, and error messages tell you enough to finish the task. Also check that text remains readable when zoomed, that it has enough contrast, and that instructions don't rely on color alone. WCAG provides testable criteria for many of these checks. Automated tools can flag some failures, such as a button with no accessible name, but they can't tell whether “More” makes sense as the name of a particular button.
What interviewers look for
Expect a concrete debugging task, such as a dialog that opens but leaves keyboard focus on the page behind it. Describe where focus should go when the dialog opens, how keyboard navigation stays inside a modal, and where focus returns when it closes. Explain how you'd verify the fix instead of just naming an ARIA attribute.