[aria-hidden="true"] is not present on the document <body>

The page body is not hidden from screen readers.

On this page

Impact

ScanGov impact ratings

About

Assistive technologies, like screen readers, work inconsistently when aria-hidden="true" is set on the document <body>. [Learn how aria-hidden affects the document body](https://dequeuniversity.com/rules/axe/4.10/aria-hidden-body).

Risks

Screen readers cannot read any content on the page.

Why it's important

Ensures assistive technologies like screen readers can correctly interpret and announce page elements to users with disabilities.

User stories

As a screen reader user, I want ARIA attributes to be correctly implemented so that I can understand the purpose and state of interactive elements.

Code

Failing pattern:

<!-- Fail: aria-hidden on the body element -->
<body aria-hidden="true">

Passing pattern:

<!-- Pass: remove aria-hidden from body -->
<body>

Error

ScanGov messaging when a site fails a standard:

Failed: [aria-hidden="true"] is not present on the document <body>

Guidance

Indicators

On this page