<input type="text"/> or
<input type="text" />
Creates a text input element. This is the default input type, as well as one of the most useful and common. Text provided for the
value attribute will appear in the text control when the form loads.
This is an empty element. In HTML, the end tag is forbidden. In XHTML, the element must be closed with a trailing slash as just shown. Developers may include a space character before the slash for backward compatibility with older browsers.
on) or requires the user to enter the information every time (
off). Omitting this attribute causes the control to inherit the
autocompletesetting for the associated
datalistelement. The value of the list attribute is the
idof the associated
titleattribute can be used with
patternto provide a description of the expected pattern/format of the input.
typeis set to
search), measured in number of characters. Users may type entries that are longer than the space provided, causing the field to scroll to the right.
<input type="text" name="name" size="15" maxlength="50" value="enter your name">