HTML Tag


Example

An HTML form with two input fields and one submit button:

<formaction="/action_page.php"method="get">
  First name: <inputtype="text" name="fname"><br>
  Last name: <inputtype="text" name="lname"><br>
  <input type="submit"value="Submit">
</form>
Try it Yourself »

More "Try it Yourself" examples below.


Definition and Usage

The tag is used to create an HTML form for user input.

The element can contain one or more of the following form elements: