In this section, we will learn what the <input type = “text”> element is and how to use it.
Text Box in HTML: What is input type text in HTML?
HTML <input type = “text”> element is a way of creating a textbox field in a document.
We can use this element in a form as a name or username etc. field so that people can insert their data and submit it to a server for further processing.
HTML input type text Syntax:
<input type = “text”>
HTML input type text Values
Input elements of type text take any type of characters and digital numbers by default.
Example: HTML text input
Here the first field is of type text and is used in this form so that people can put their username.