Go ahead and remove value="44 Cherry St".
<form> <input type="text" name="address" size="30"> </form>
If we want, we can specify how many characters a user can input.
Just go ahead and try to input more than 10 characters!
<form> <input type="text" name="address" size="30" maxlength="10"> </form>
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.
<form> <input type="password"> </form>
Remember that each <input> must have a name.
<form> <input type="password" name="userpass"> </form>
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... |
<< BACK NEXT >> |
Quick Forms Reference Barebones HTML Guide |
Print version of this tutorial available - Get the PageTutor book & CD |
Become a member - Get more good stuff! |
|
|
|
|
"Live as if you were to die tomorrow. Learn as if you were to live forever." |
- Mahatma Gandhi |