Html 5 Form Attribute Tag

The form attribute tag is used to contain one or more input types or fields. That input types are text, url, search, telephone, password, email ,datepickers,color and range. you must put to id for form because use to form name.

Syntax:

<form id="" name="" />

Example Code

<form action="" method="get" id="example_form" name="example_form">
   User name: <input type="text" name="username" id="username"/>
  <input type="submit" value="Submit" />
</form>

Out Put :



User name:




Content