Text Boxes - The <input> Tag

Text boxes are used to capture one line of information. To create a text box, use the <input> tag and set the type attribute to text. Note: the <input> tag does not have a closing tag.

The main attributes for the a text box are:


<input type='text' name='T1' value='Hello, World!' size='20' maxlength='10'>