You can place a form anywhere in the body of an HTML document. Some people like to use a table to organize form elements; others create form fields within ordinary paragraphs. A form is enclosed in a two-sided <form> tag:
The method attribute specifies what will happen when the form is submitted. Almost all forms use the method=”post” attribute, meaning that the data users enter into the form will be collected and either delivered (by e-mail) or sent to the server, where server-side code can retrieve it and perform tasks such as storing it (in a database).
Within the opening <form> tag, you specify an action attribute. This is typically either an e-mail address to which to send information, or the URL of a script that will run when the user submits the form. For an e-mail delivery, the action attribute might look like this: