HyperTextMarkupLanguage

HTML Advanced Topics


| Home | Agenda | Next |

Input Fields - Continued

TYPE = "TEXT"
Optional: [VALUE, SIZE, MAXLENGTH]

Creates an input field allowing the user to enter and/or edit a single line of text. It is the default for TYPE.

Example:

  <FORM>
  <INPUT TYPE=text NAME=sample1 VALUE="Your Name" SIZE=25 MAXLENGTH=50>
  </FORM>

VALUE: specifies text that appears when the form is first loaded
SIZE: changes the length of the entry portion of the form
MAXLENGTH: sets the maximum amount of text the user can type into the entry


| Home | Agenda | Next |

T10D023