Inline text spacing must be adjustable with custom stylesheets

Serious

What is the problem?

The "avoid-inline-spacing" rule addresses the issue of setting text spacing directly in HTML elements using style attributes.

Impacted Groups

Attention Deficit
Blind
Low Vision
Deafblind
Mobility
Cognitive

Why is this important?

When text spacing is set directly in HTML, it can be difficult for users to adjust the spacing to their preferred settings, especially for those with visual impairments or cognitive disabilities. This can make the content harder to read and understand.

How to solve this issue

To fix this, use CSS to set text spacing without using the !important flag. This allows users to customize the spacing through their browser settings or personal style sheets, improving readability and accessibility for a wider range of users.

Rule Information

Rule ID

avoid-inline-spacing

Severity

Serious

Manual Review Required

No

Rule Group

WCAG 2.1 Level A & AA Rules

Guidelines

  • WCAG 2.1 (AA)
  • WCAG 2.2 (AA)
  • EN 301 549

Customise Guidance

You can customise each accessibility rule in SiteAlly with your own guidance, instructions and even links to your own organisation specific documentation.

Enable your website editors to resolve issues quickly with SiteAlly.

Ready to make your website accessible?

SiteAlly provides automated accessibility monitoring, detailed reports, and step-by-step guidance to help you achieve and maintain compliance.