Text Fields

Text Fields
 
Text fields are used when you want the user to type letters, numbers etc. in a form.
 
Format:
<form> First name: <input type=”text” name=”firstname”></form>
 
example page in browser will look like
<form>
First name: <input type=”text” name=”firstname”>
<br>
Last name: <input type=”text” name=”lastname”>
</form>
First name
Last name
 
Note that the form itself is not visible. Also note that in most browsers, the width of the text field is 20 characters by default. You can check them by typing in Text fields.