Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed HTML Forms!
You have completed HTML Forms!
Preview
Right now, it’s impossible for the user to tell what kind of information they should type into each form field. We can label form controls using the label element.
<label> element
- The
label-element helps to organize forms by assigning some helpful text to a form control. This text lets the user know what kind of data they should add to each form field.
Resources
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
looks okay but it's still just a little
bit messy.
0:00
Right now it's impossible for the user to
tell which form control does what.
0:02
There's no way to know if the bio field is
for
0:06
their email or if the email field is for
their password.
0:09
We can label each one of our form controls
using the label element.
0:13
Let's create some labels right now and
learn how they work.
0:18
I'm going to create a label and then I'll
explain it.
0:21
So if we hop into work space here our
first
0:25
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up