A quick introduction to styling form error messages in the best & most accessible way.
Form error messages
We’ve all run into error messages when filling out forms
They need to be designed & designed well
Because: we’ve all run into poor error messages
Some major concerns when designing forms & their error messages:
input:invalid { border-color: red; } input:valid { border-color: green; }
input:invalid + .error-message { display: block; }
Form validation really needs JavaScript to be super awesome
We’re going to include a little bit of JavaScript to help simplify and & design some items—but don’t worry, it’s already pre-written