Monday, September 7, 2015

html5

To create a form on a Web page, you need to use the <FORM> tag.
The <FORM> tag supports the following attributes:

  • name 
  • ID 
  • action
  •  method
  •  autocomplete 
  • novalidate
  •  target 

The fields can be added to a form by using the following tags:

  •     <INPUT>
  •  <SELECT>
  •  <LABEL> 
  • <FIELDSET>
  •  <TEXTAREA>
  •  <DATALIST> 
  • <KEYGEN> 
  • <OUTPUT> 
  • <BUTTON> 

JavaScript defines the following browser objects on a Web page:


  •  window
  •  document
  •  navigator 
  • screen 
  • history
  •  location

 Browser objects represent the browser environment and provide properties and methods for its access and manipulation
. The form object is a browser object, which acts as a container for several other objects that collect information from a user.
The following objects of JavaScript are commonly used while working with Web forms:

  •  form 
  • button
  •  checkbox
  •  text
  •  textarea
  •  radio 
  • select


No comments:

Post a Comment