| Start | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Submitting The Action AttributeThe action attribute defines the action to be performed when the form is submitted, which usually leads to a script that collects the information submitted and works with it. if you leave it blank, it will send it to the same file The Method AttributeThe method attribute is used to define the HTTP method of the form which is either GET or POST. The GET method is mostly used to get data, for example to receive a post by its ID or name, or to submit a search query. The GET method will append the form data to the URL specified in the action attribute. The POST method is used when submitting data to a script. The POST method does not append the form data to the action URL but sends using the request body. To submit the data from the form correctly, a name attribute name must be specified. More attributes |
||||||||||||||||||
| Target attribute in form tag The target attribute specifies a name or a keyword that indicates where to display the response that is received after submitting the form. The target attribute defines a name of, or keyword for, a browsing context (e.g. tab, window, or inline frame). From Tag with a target attribute: Attribute Values Note: The target attribute was ****deprecated**** in **HTML 4.01**. The target attribute is ****supported**** in ****HTML5****. Frames and framesets are not supported in ****HTML5****, so the _parent, _top and framename values are now mostly used with iframes. |
||||||||||||||||||
| Uploading Files Images and files can be uploaded/submitted to server by setting Example |
||||||||||||||||||
| Grouping a few input fields While designing a form, you might like to group a few input fields into a group to help organise the form layout. This can be done by using the tag . Here is an example for using it. For each fieldset, you can set a legend for the set using the tag LEGEND TEXT Example Result Browser Support Chrome, IE, Edge, FireFox, Safari and Opera's latest versions also supports the tag Syntax
Parameters
RemarksThe |
Read Article
https://develop.horje.com/learn/1434/reference