Forms
WIP
Labels and inputs:
Well we have to connect the label to the input for screen readers and error messages. To do that you simply add a for
attribute to the <label>
element and add the same one to the <input>
element. Even if you don't want to show the label (which you should avoid), you still have to have it in the code for the screen reader.
Example :
<label for="username">Username</label>
<input id="username" type="text" name="username" />