Text Spacing

web page example with text spacing
Figure 1: Example of context where text spacing is applied

The space between 2 characters or lines of text helps to make the content readable. Hence, it is very important for the usability and readability of a webpage.

But sometimes the text styles applied on a webpage are not readable for some user groups such as low vision users, people with learning impairments and so on. Hence, it becomes necessary to keep the text style of a webpage relative so that user can resize text or adjust text spacing.

NOTE:

  • New to accessibility or uncertain of requirements, it will be helpful to review all sections below.
  • Already familiar with requirements, skip to the “Working Example” section for sample HTML, CSS and JavaScript (when needed), along with a working demo.