Building HTML Forms Right: Accessibility is Key
In this series, we will examine the proper steps to creating forms for the web, how to think about the code we write. The series is broken up into the following parts:Semantics and accessibility. The key takeaways for semantics are: always use a <form> tag, always include a <label> (or aria-label), use the appropriate input type attribute, and always include some sort of submit button (even if it’s not visible) Use explicit labels to add labels to an input. Explicit labels are a great addition to our accessibility toolbelt.
Join Hacker Noon
Create your free account to unlock your custom reading experience.