Tip:
Highlight text to annotate it
X
Hi, I'm Dorian Winterfeld on behalf of Expert Village. And I've been doing web programming
for about ten years. And today we are going to cover the basics of html. Now I'm going
to cover something a little bit more advanced, which is html forms. We've all seen forms
on the internet when you're buying something and you have to enter your name and credit
card number and what not. But anyway you get started, the very basic tag is of course opening
form. And of course like all other tags, there is the close form. Now, there is one attribute
required to the forms tab, and that is called action. Our other attributes, because this
is the one that is required. We are going to leave it empty quotes for now. In order
to understand what would go there would require a little bit more programming knowledge than
what we're going to go into right now. But here's the basics of how to create a form.
Lets say we want to ask the user for their first name. We'll say, please enter your first
name. Now we're going to add a tag called a text field, and here's how it works. Input
type equals text. Now this is another one of those tags, that since there is no closing
tag we put the slash bracket at the end of the tag. Now lets see how this would look
like if we were to save our document and reload. And there you go. Please enter your first
name. And you can type your name in there, and you'll see that that is where it will
appear.