You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Associating a <label> with an <input> element offers some major advantages:
The label text is not only visually associated with its corresponding text input; it is programmatically associated with it too. This means that, for example, a screen reader will read out the label when the user is focused on the form input, making it easier for an assistive technology user to understand what data should be entered.
When a user clicks or touches/taps a label, the browser passes the focus to its associated input (the resulting event is also raised for the input). That increased hit area for focusing the input provides an advantage to anyone trying to activate it – including those using a touch-screen device.
Why do you have multiple
<form>
elements in this HTML file? Why not just use one<form>
with many<input>
s inside it?Also, I think these inputs should have
<label>
elements.From MDN:
Originally posted by @nok-ko in #26 (comment)
The text was updated successfully, but these errors were encountered: