Update index.md (#28307)
This commit is contained in:
@ -3,7 +3,7 @@ title: HTML Forms
|
||||
---
|
||||
## HTML Forms
|
||||
|
||||
Basically, forms are used to collect data entered by a user, which are then sent to the server for further processing. They can be used for different kinds of user inputs, such as name, email etc.
|
||||
Basically, forms are used to collect data entered by a user, which are then sent to the server for further processing. They can be used for different kinds of user inputs, such as name, email, etc.
|
||||
|
||||
Form contains control elements which are wrapped around ```<form></form>``` tags, like ```input```, which can have types like:
|
||||
|
||||
@ -61,7 +61,7 @@ Code example:
|
||||
|
||||
Other elements that form can contain:
|
||||
|
||||
- ```textarea``` - is a multiline box which is most often used for adding some text eg. comment. Size of textarea is defined by number of rows and columns.
|
||||
- ```textarea``` - is a multiline box which is most often used for adding some text (e.g. comment). Size of textarea is defined by number of rows and columns.
|
||||
- ```select``` - together with ```<option></option>``` tag creates drop-down select menu.
|
||||
- ```button``` - The button element can be used to define a clickable button.
|
||||
- ```fieldset```- It groups related elements in a form.
|
||||
@ -84,7 +84,7 @@ A form will take input from the site visitor and then will post it to a back-end
|
||||
|
||||
There are various form elements available like text fields, textarea fields, drop-down menus, radio buttons, checkboxes, etc.
|
||||
|
||||
The HTML `<form>` tag is used to create an HTML form and it has following syntax −
|
||||
The HTML `<form>` tag is used to create an HTML form and it has the following syntax −
|
||||
|
||||
``` html
|
||||
<form action = "Script URL" method = "GET|POST">
|
||||
|
Reference in New Issue
Block a user