what is forms
In html,we use <form>to make a form.Forms are very useful for us because we can use them to make login forms,feedback forms etc.
forms attributes list
- action:it used for defining the action after the submitting the form.
- method:it used for defining the http method of sending the data of forms.The form-data can be sent as URL variables (with method="get") or as HTTP post transaction (with method="post").
- enctype:Specifies how the form-data should be encoded when submitting it to the server (only for method="post")
- name:it specifies the name of form
- target:The target attribute specifies where to display the response that is received after submitting the form.
The target attribute can have one of the following values:
- _blank:The response is displayed in a new window or tab
- _self:The response is displayed in the current window
- _parent:The response is displayed in the parent frame
- _top:The response is displayed in the full body of the
- frame name:The response is displayed in a named iframe
- autocomplete:The autocomplete attribute specifies whether a form should have autocomplete on or off.When autocomplete is on, the browser automatically complete values based on values that the user has entered before.It has two values :-
1.on:it allows autocomplete
2.off:it doesn't allow autocomplete - novalidate:this attributes is used to not validate the form data
- rel:Specifies the relationship between a linked resource and the current document.
- accept-charset:Specifies the character encodings used for form submission