Skip to main content
InterviewHubPRO
Section Overview
Q22

Question 22 of 50

Part 2: Core Architecture & Implementation (Mid-Level)

44%
Web Accessibility & WCAG (50 Qs)•Part 2: Core Architecture & Implementation (Mid-Level)

Accessible Tooltips and Disclosures (`aria-expanded`, `aria-controls`).

senior LevelMost AskedCode ExampleClosures & ScopeSystem Design

In Simple Words: For accordions and expandable dropdown menus:

html
<button aria-expanded="false" aria-controls="faq-answer-1" onclick="toggleFAQ(this)">
  What is your return policy?
</button>
<div id="faq-answer-1" hidden>
  Items can be returned within 30 days...
</div>

Toggling aria-expanded="true" immediately informs screen reader users that content opened.