Loading...

Each label associated with an input element contains text

Each label associated with an input element contains text

Label elements associated with input fields must contain text.

This document gives information about the related Acquia Optimize checks:

  • Each label associated with an input element contains text.

What

Label elements associated with input fields must contain text.

Why

If labels do not contain text, they cannot properly describe their related input fields. This means users may have difficulty filling out the input fields correctly.

Affected Users

This check affects the following users who have:

  • Visual impairments: Who access the site content with a screen reader or screen magnification software.

  • Cognitive impairments: Who benefit from clear instructions.

How

How to fix it

The Acquia Optimize platform will highlight <label> elements that do not contain text. To resolve the issue, you need to add descriptive text to the <label> element so that it properly corresponds to the related input field.

Additional resources

WCAG success criteria

Did not find what you were looking for?

If this content did not answer your questions, try searching or contacting our support team for further assistance.

Back to Section navigation