Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardHTMLthe accessibility treeSingle-choice MCQ

display:none and aria-hidden="true" both keep content out of the accessibility tree, but they differ in one structural way. What is the precise difference in how the accessibility tree is built for each?

<div style="display:none"><button>A</button></div> <div aria-hidden="true"><button>B</button></div>