accessibility-guidelines

This document is in beta. Help us by reporting issues via Github or email.

Back to the overview page

Resize text

People must be able to resize text to 200%, without losing access to any content or functionality.


On this page:


Requirements

Why?

This ensures that partially sighted people can comfortably read content and see the interface well.

Official wording in the Web Content Accessibility Guidelines

1.4.4 Resize text: Except for captions and images of text, text can be resized without assistive technology up to 200 percent without loss of content or functionality. (Level AA)

See the W3C’s detailed explanation of this guideline with techniques and examples.


Guidance for Design


Guidance for Web

Using relative size units to support font resizing

Ensuring the viewport meta tag is set to permit “pinch-to-zoom” scaling on touch screens

Example

<meta name="viewport" content="width=device-width, initial-scale=1.0" />

Failure examples

<!-- Don't do this -->
<meta name="viewport" content="user-scalable=no" />
<!-- Don't do this -->
<meta
  name="viewport"
  content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=1;"
/>

Common mistakes


More info

Sources

Contribute

This document is in beta. Help us by reporting issues via Github or email.