An HTML form is used to collect user input. The user input is most often sent to a server for processing.
The <form> Element
The HTML <form>
element is used to create an HTML form for user input:
The <form>
element is a container for different types of input elements, such as: text fields, checkboxes, radio buttons, submit buttons, etc.
All the different form elements are covered in this chapter: HTML Form Elements.
The <input> Element
The HTML <input>
element is the most used form element.
An <input>
the element can be displayed in many ways, depending on the type
attribute.
<html>
<head>
<title>Text Input Control</title>
</head>
<body>
<h1> Forms in HTML </h1>
<form >
First name: <input type = "text" name = "fname" /><br><br>
Last name: <input type = "text" name = "lname" /><br><br>
Address: <textarea name = "address"></textarea><br><br>
Standard: <input type = "text" name="standard" > <br><br>
<input type = "submit" name="submit" >
</form>
</body>
</html>