1
HTML/CSSBeginner#accessibility#html
The accessibility tree is a parallel structure derived from the DOM that assistive technologies (screen readers) use, exposing role, name, and state for each element. Semantic HTML and correct ARIA attributes shape what's exposed in this tree.
<!-- <button>Submit</button> exposes role=button, name='Submit' --> <!-- <div onclick=...>Submit</div> exposes nothing without role/tabindex/aria-label -->