Create Semantic, Accessible HTML for Text Form Inputs

Share this video with your friends

Send Tweet

Learn how to ensure accessibility of text form inputs from the start by defining semantic HTML. To do this, we'll need a label for each input that we create. This label needs to be associated with the input through a for attribute which allows screen readers to know that a label is associated as well as allows a click of the label to focus the input.

We'll create HTML for text and textarea, as well as disabled versions of both.