Below is a listing of form tags with their HTML code.
| Tag properties: | ||
| type | tells the browser what type of form tag to display on the screen | Required. |
| name | gives the form tag a name | Required. |
| size | tells the browser how long to make the box appear on screen. | Required only if the maxlength property not set. Not required for select lists. |
| maxlength | tells the browser how many characters can be accepted, regardless of how big the box is on the screen. | Required. Not required for select lists. |
| value | used to pass values back to the CGI script. | Required for radio buttons, check boxes, select lists, and Sumit/Reset buttons. |
| checked | used to automatically select a radio button or check box value. | Optional. |
| selected | used in the <option> tag of a list box to automatically select a value. | Optional. |