☜ Go back home
Form input
The bad
Needed for notifications.
Source code
Needed for notifications.
What's wrong with this?
Once the field has content, its label is lost.
In fact, there is no functional
<label>
. Placeholders shouldn't be used as stand-ins for labels.
The hint is not connected to the form field and will be noticed too late when using Voice Over.
The hint and placeholder color contrast is too low.
The good
Show solution
Email address
Needed for notifications.
Source code
Email address
Needed for notifications.
Improvements
Use a
<label>
to describe the input.
Remove the placeholder.
Use
aria-details
or
aria-describedby
to connect the hint.
Use a darker color for the hint.