Name
Accessible names
Find an icon button that has no meaningful name and repair what a screen reader exposes.
LESSON 2 OF 20
What a screen reader presents begins with decisions in the product, passes through the platform accessibility layer, and is interpreted by the screen reader. A problem at any point in this chain can change or remove the information a user receives.
Trace screen reader information from the product to the user and identify where defects can enter the chain.
The chain begins in the product. Interface code creates objects and gives them properties such as name, role, state, value, hierarchy, and relationships. On the web, native HTML elements provide much of this information automatically. A button element, for example, already exposes button behaviour. Native apps and embedded products use the components and accessibility APIs provided by their platforms.
The browser or operating system translates the product's information into an accessibility model. This model is often called an accessibility tree. It is a structured representation that assistive technologies can query. It does not need to contain every visual element. Decorative images, layout containers, and hidden content may be excluded, while meaningful controls and text need useful properties and a logical position.
The screen reader reads the accessibility model rather than simply examining pixels on the screen. It combines the available properties with its own rules, user settings, navigation mode, and current context. This is why two screen readers may phrase the same information differently while still communicating equivalent meaning.
Consider a quantity selector in a checkout flow. Visually, it contains a minus icon, the number two, and a plus icon. If the icons are generic containers with click handlers, the product may expose no names or button roles. The accessibility model can then contain two unnamed objects, or exclude them entirely. The screen reader cannot infer that the controls decrease and increase quantity from their appearance.
A screen reader defect is not always caused by the screen reader. Begin with the product and follow the information forward. Confirm that the intended meaning exists in code, inspect what the platform exposes, and then compare that information with the screen reader output. This method helps the team report the responsible layer instead of describing only the final symptom.
Semantics describe what an object is and how it relates to surrounding content. Native elements and components usually provide stronger defaults than generic containers. Custom controls must recreate every property and behaviour that users need.
Accessibility APIs connect products, platforms, and assistive technologies. Product code supplies information through platform mechanisms; the browser or operating system then makes a normalised model available to the screen reader.
Static properties are not enough for an interactive product. The chain must also communicate where focus moves and what changes after an action. Missing or badly timed events can leave the accessibility model correct but the user unaware of an update.
Browsers, operating systems, app frameworks, and screen readers do not all interpret information in exactly the same way. Test supported combinations, but first confirm that the product exposes valid information through the platform.
TRY THIS NOW
Use a familiar control from your product and record what each layer must contribute.
A visual label is not enough if its meaning never reaches the accessibility model. Follow the information from product code to platform data to screen reader output.
Choose one custom control in your product. Write down its intended name, role, state, value, relationships, and keyboard or touch behaviour. Inspect the accessibility model and compare it with what a screen reader presents. If something differs, identify the first point in the chain where the information becomes incorrect or disappears.
Answer every question, then use the forward lesson button to record this lesson as complete. The check is not scored and can be repeated.