From Web Education Community Group
< HTML‎ | Training
Jump to: navigation, search


    <td>First name</td>
    <td><input type="text" id="fn"></td>
    <td>Last name</td>
    <td><input type="text" id="ln"></td>
      <input type="radio" id="m" name="gender">male<br/>
      <input type="radio" id="f" name="gender">female
    <td>Phone number</td>
    <td><input type="tel" id="tel"></td>
    <td><input type="email" id="email"></td>
    <td>Kind of contact</td>
        <option value="ir">Interview Request</option>
        <option value="mq">Membership Questions</option>
        <option value="ilq">International Liaison Questions</option>
        <option value="tq">Technology Questions</option>

User-submittable form

User-submittable form is specified by <form>.
The form is used to pass data to a server.

The action attribute

The server of the destination is specified by the action attribute.

 <form action=""></form>

The method attribute

The method attribute specifies the HTTP method with which a UA is meant to associate this element for form submission.

 <form action="" method="get"></form>

See also The form element.

Form controls

The form element can contain some form-controls:

  • input
  • textarea
  • radiobutton
  • checkbox
  • submit button
  • select menu

... etc.

Form controls are included between <form> ... </form>.

In the next content, you will learn some form controls. "Form controls"