Inappropriate Label Element Check

RuleSets of AccessMonitor - the validator of web accessibility practices

Inappropriate Label Element Check

Description

The “Inappropriate Label Element Check” evaluates whether there is any <label> element that is either not visible to users or incorrectly positioned, making it unclear what field it refers to.

Example outcome

I identified 1 <label> element that is not visible or is incorrectly positioned.

Impact

Fixes

To address inappropriate <label> elements:

  1. Locate the invisible or is incorrectly positioned <label> element.
  2. Verify whether it has the CSS code display: none; or visibility: hidden; and remove it to make it visible.
  3. Verify the label placement, making sure to place it before the <input> element it labels.

Resources