[user-scalable="no"] is not used in the <meta name="viewport"> element and the [maximum-scale] attribute is not less than 5

The page allows users to zoom in on mobile devices.

On this page

Impact

ScanGov impact ratings

About

Disabling zooming is problematic for users with low vision who rely on screen magnification to properly see the contents of a web page.

Risks

Mobile users with low vision cannot zoom in to read content.

Why it's important

Follows established patterns that prevent common usability barriers for people with disabilities.

User stories

As a user with a disability, I want the site to follow accessibility best practices so that I can use it without encountering barriers.

Code

Failing pattern:

<!-- Fail: maximum-scale=1 prevents user from zooming -->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

Passing pattern:

<!-- Pass: allows user scaling -->
<meta name="viewport" content="width=device-width, initial-scale=1">

Error

ScanGov messaging when a site fails a standard:

Failed: [user-scalable="no"] is not used in the <meta name="viewport"> element and the [maximum-scale] attribute is not less than 5

Guidance

Indicators

On this page