Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML
tag

HTML tag

Example

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

<form action="demo_form.php" method="get">

First name:

<input type="text" name="fname">
<br>

Last name:

<input type="text" name="lname">
<br>
<input type="submit" value="Submit" form>

Try it »

(More examples are at the bottom of the page)


Browser support

Internet Explorer Firefox Opera Google Chrome Safari

All major browsers support the tag.


Tag Definition and Usage Notes

The tag is used to create an HTML form for user input. The element contains one or more of the following form elements: