A form can be placed anywhere in the body of an HTML document. A form is enclosed in a 2-sided <form> tag.
<form method='post'> </form>
The method attribute specifies what will happen when the form is submitted. We can use either post or get attribute.
Within the <form> tag, we can specify an action attribute. This is typically an email or a script that will run when the user submits the form.
For an email delivery, it looks typically as below.
<form action='mailto: firstname.lastname@example.org'>
This will trigger the default email to be launched in your PC.
To collect data from the form using a CGI script such as a php script, we use the following.