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
The first element we’ll learn about is the form element. This special element wraps all the other elements that go inside of our form.
The <form> element
- The
form-element wraps a section of the document that contains form controls. Theactionattribute specifies the web address of a program that processes the information submitted via the form. Themethodattribute specifies the HTTP method that the browser should use to submit the form, such as POST or GET. A form cannot be nested inside one another form.
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
I'm going to type out a form element, and
then I'll explain how it works.
0:00
So inside of our work space here, we want
to jump into the body.
0:04
And inside of the body, we'll type form.
0:09
And because of work spaces code
completion,
0:14
it should automatically type the closing
form tag.
0:17
So let's save this.
0:21
And let's open up our preview area, which
you can
0:23
get to by clicking the little Preview icon
right here.
0:27
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