Go ahead and remove value="44 Cherry St".

<input type="text" name="address" size="30">

If we want, we can specify how many characters a user can input.

Just go ahead and try to input more than 10 characters!

<input type="text" name="address" size="30" maxlength="10">

I suppose this feature might come in handy now and then, but unless you think someone's going to send the whole King James Bible down the pike at you, I wouldn't worry about it.

Very similar to the type="text" is the type="password". It is exactly the same, except it displays **** instead of the actual input. The form will send you the input, it just won't display it.

<input type="password">

Go ahead, type something in the box.

Remember that each <input> must have a name.

<input type="password" name="userpass">

Size, value, and maxlength attributes work with the password input also. By the way, a <tag> tells the browser to do something. An attribute goes inside the <tag> and tells the browser how to do it.

Well, that's it for the first few Form Tutor lessons. Is there more? Oh yeah, much more. In the members area you'll learn all sorts of form inputs and how to use them in your web page. You can use them to gather information and to add interactivity to your page.

Yes Virginia, there is a LOT more to html forms... you'll learn plenty. But you'll need to become a member first...


PageTutor - Form Tutor
Lessons: Intro 1 2 3 4 5 6 7 8 9 10 11 12 13
Quick Forms Reference      Barebones HTML Guide
Print version of this tutorial available - Get the PageTutor book & CD