HTML Input Text tag is used to collect user's input in text format. For this, you need to put <input>
tag equals to text. <input type="text">
refers to one-line input field for text input from the user.
Syntax
<form> <input type="text"> </form>
Example
<!DOCTYPE html> <html> <head> <title>My HTML Text Tag Example</title> </head> <body> <form> <p> Name: <input type="text" id="name" size="25"/> </p> <p> Subject: <input type="text" id="subject" size="25"/> </p> </form> </body> </html>
This will produce following result