Sachsentext

All password input elements should have a corresponding label

All input elements with a type of "password"should have a corresponding label element. Screen readers often enter a "form mode" where only label text is read aloud to the user, and missing labels can make a form unusable in these cases.

Example

Wrong

Enter your password: <input type="password" name="pass">

Right

<label for="pass">Enter your password:</label> <input type="password" name="pass" id="pass">