Web Forms in HTML 5

Web Forms in HTML 5 

 
HTML 5 allows you to create forms using the FORM element. This FORM element can take user inputs by using the input element. In HTML 4, you can create forms that take input data by using the type attribute of the INPUT element but in HTML 5 forms are Web forms are 2.0. It is nothing but only the extension of the old form feature. It provides newly added values of type attribute and the new attribute of the INPUT element.
 
Newly added attribute of the FORM element
 
HTML5 Introduces the following attributes for the form element:
  1. Autocomplete
  2. Novalidate
Autocomplete :  Specifies that a form's text field can provide a list of options to automatically fill the field. This means when you start typing in an autocomplete field, the browser displays a list of options that can be filled in the field. You can select an option to automatically fill the content.
 
Syntax :
  1. <form action=”XYZ” method=“get” autocomplete=”on”></form>  
Novalidate: Specifies that the form will not be validated when submitted. The following code snippet shows the use of the validate attributes.
  1. <form action=”ABC” novalidate=”novalidate”></form>  
ABC and XYZ are the form's address may be like myform.asp or demo_form.asp. 
 
Foreantech
Foreantech - A complete online solution company.