Search the Whole World Here.,.,

HTML Form - Text Input


<input type="text"> defines a one-line input field for text input:

Example

<form>
  First name:<br>
  <input type="text" name="firstname"><br>
  Last name:<br>
  <input type="text" name="lastname">
</form>
Try it Yourself »
This is how it will look like in a browser:
First name:

Last name:
Note: The form itself is not visible. Also note that the default width of a text field is 20 characters.


EmoticonEmoticon