HTML Screen Reader Checks and Accessibility Inspection
Inspect the accessibility tree
In browser developer tools, inspect a control and open its accessibility information. Check the computed role, name, description and states. The accessibility tree is evidence about what the browser exposes, not a transcript of what a screen reader says.
<label for="topic">Topic</label><input id="topic" aria-describedby="tip"><p id="tip">Choose a lesson topic.</p>Inspect a textbox named Topic with the description Choose a lesson topic.
Navigate by structure
With a screen reader, use its heading and landmark navigation commands to locate the main content and sections. Commands vary by reader, browser and reading mode; consult its help. A heading hierarchy should describe topics, not font sizes.
<main> <h1>Course guide</h1> <h2>Materials</h2> <p>Read the notes.</p> <h2>Practice</h2> <p>Complete the exercise.</p></main>Expect one main region, one level-one heading and two level-two headings in inspection.
Verify names and state changes
Test actual tasks with a screen reader: locate controls, activate them and check whether their state or result is understandable. Use a native disclosure as a small exercise. Record browser, screen reader, versions, steps, expected result and observed result.
<details> <summary>Study tips</summary> <p>Practice daily.</p></details>Activate Study tips; inspect the expanded state, then manually check whether the reader communicates the change.
Common mistakes and practice
Do not predict exact spoken phrases from markup. Test at least a keyboard-only flow and a supported browser/screen-reader combination (for example NVDA with Firefox or VoiceOver with Safari). Record issues, not a blanket pass. Automated inspection and manual checks complement one another.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
HTML Screen Reader Checks and Accessibility Inspection — Knowledge Check
Apply the accessibility concepts taught in this lesson.
What does an accessibility tree show?
What must be recorded in manual testing?
What helps screen-reader heading navigation?
What should be tested when a disclosure opens?
Does a clean automated inspection prove accessibility?