There's a faster version of egghead. Click here to try it.
1×
Become a member
to unlock all features

Create an egghead account to access 5000+ tutorials and resources from expert developers.

Create account
Autoplay

    Ensure Form Controls have Accessible Labels

    eslintESLint
    reactReact
    >=16.10.2

    Labeling inputs, elements, and widgets add context and clarity for assistive technology such as screen readers. Elements of a <form> such as <input> or <textarea> or <select> should be labelled by using a <label> element. Placeholder text can be used in addition to a label but should not be used in place of a label as not all assistive technologies respect placeholder text.