Key Points
To create a form, use a two-sided <form> tag. Within it, place one or more <input> tags that define the form fields.
In the opening <form> tag, place a
method="post"argument and anactionargument that describes how the form should be processed. The most common argument isaction="mailto:address"where address is a valid e-mail address. If collecting form results by using e-mail, include anenctype="text/plain"argument.To create a text box, use
<input type="text" name="fieldname" />where fieldname is the unique name you assign to the text box. Optional additional arguments includesize and maxlength.To create a multi-line text box (a text area), use a two-sided <textarea> tag with a
nameargument and a number of rows and columns. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access