Orvado Technologies is your one-stop shop for custom web site solutions, quality work at affordable rates
 
orvado side

<FORM>

The FORM tag is used to create web page forms. This is the primary way to capture user information on your web site. A form consists of a number of input controls (defined with the INPUT tag) Input controls can be simple text boxes, or pull-down menus along with radio buttons and check boxes.

All input controls must be contained within a FORM tag in order for them to be useful. Some browsers will not render INPUT elements outside of the FORM element. One exception is the BUTTON element which should render anywhere on an HTML page.

Attributes

Attribute Description
ID Identifies this tag to reference in script (program code)
CLASS Define the class used to render this element (defined by a style sheet)
TITLE A title that is associated with the element (displayed as a tooltip in Internet Explorer)
NAME Assigns a name to the form so you can refer to the elements of the form using client-side scripting (eg. Javascript)
ACTION The URI (normally a web page on the same server) where information from the form will be sent once the form is submitted
METHOD Indicates how information should be submitted to the resource defined by the ACTION tag. May be one of: get, post
ENCTYPE Indicates the type of data encoding to use when submitting the form. This defaults to application/x-www-form-urlencoded and you won't need to specify this in most cases. If you have a INPUT type=file control on your form, then you will need to specify an encoding type of multipart/form-data.
ACCEPT-CHARSET Inidicate acceptable content types which may be submitted using a INPUT type=file input. These are often referred to as MIME types and look something like text/plain or image/jpeg

Example

<FORM action="">
<FIELDSET>
<LEGEND>Personal Information</LEGEND>
<TABLE BORDER="0" CELLPADDING="10"><TR><TD>
First Name <INPUT TYPE="text" NAME="firstname"><BR>
Last Name <INPUT TYPE="text" NAME="lastname"><BR><BR>
<INPUT TYPE="submit" NAME="action" VALUE=" Sign-Up ">
</TD></TR><TABLE>
</FIELDSET>
</FORM>

Renders As:

Personal Information
First Name
Last Name

Compatibility

HTML 4.01
Return to HTML Tag Reference Overview

Featured Clients

Activex America

Custom features and clean design is why Activex America chose Orvado Technologies for a complete site redesign.
Site Map   Terms of Service   Privacy Policy