Hidden content on the page should be reviewed when it is shown
This experimental best-practice item, not a WCAG requirement, lists content that was hidden during the scan, such as closed menus, tabs and dialogs. Open each one and test it, because problems inside were not checked.
Experimental
| Rule ID | hidden-content |
|---|---|
| Impact | Minor |
| Success criterion | Best practice, not a WCAG requirement |
| Needs a change in the website’s code |
Example
<button type="button" aria-expanded="false" aria-controls="shipping-info">Shipping details</button>
<div id="shipping-info" hidden>
<p>Orders ship within 2 working days.</p>
<img src="carriers.png">
</div>Once the panel opens, a screen reader announces “carriers dot png”; the scan never saw it.
<button type="button" aria-expanded="false" aria-controls="shipping-info">Shipping details</button>
<div id="shipping-info" hidden>
<p>Orders ship within 2 working days.</p>
<img src="carriers.png" alt="We ship with DHL, UPS and Royal Mail">
</div>After review, the opened panel's image is announced as “We ship with DHL, UPS and Royal Mail”.
Why it matters
An automated scan sees the page in one state: menus closed, tabs unselected, dialogs not open, error messages not yet triggered. Real visitors open all of these. A keyboard user may find that a mega menu cannot be closed, or a screen reader user may meet an unlabelled field in a checkout step the scan never reached.
Hidden parts are often where the important interactions live: navigation on mobile, form validation, cookie settings, product details in tabs. Leaving them untested means a clean report can still hide serious barriers for blind, low-vision and keyboard-only visitors.
How to fix it
Use the list as a to-do list of page states to test.
Reveal each state, then test it. Open the menu, expand the accordion, switch tabs, open the dialog, and submit a form with errors. Run the scan again in each state, or test it by hand.
Check the toggles too. The control that shows the content should be a real button, work with the keyboard, and announce its state:
<button type="button" aria-expanded="true" aria-controls="shipping-info">Shipping details</button>
<div id="shipping-info">…</div>
Check that hidden really is hidden. Content that should not be read yet must be hidden from everyone, with hidden or display: none. Don't hide it only visually, for example with opacity: 0, or screen reader and keyboard users will stumble into it.
Check responsive views. Some content only appears at small or large widths. Test the page at a phone width as well as on a desktop.
Checklist
- Open every menu, tab, accordion and dialog, then retest.
- Trigger form error messages and check them.
- Make sure toggles are buttons that report their state.
- Test the page at both phone and desktop widths.
How the check works
The check visits every element that has content, except <script>, <style>, <template> and similar. An element hidden with display: none, or with visibility: hidden while its parent is visible, is listed for review, because nothing inside it was tested. This experimental item is never a failure. Reveal the content and test it again, with a scan or by hand.
Resources
Updated October 27, 2026