|
<FORM></FORM> This element defines a fill-in form to contain labels and form controls, such as menus and text entry boxes that may be filled in by a user. Form content is defined using the <BUTTON>, <INPUT>, <SELECT>, and <TEXTAREA> elements as well as other HTML formatting and structuring elements. HTML elements such as <DIV> and <TABLE> may also be used to improve form layout. |
|
|
ATTRIBUTES ACTION = "URL" ENCTYPE = "application/x-www.form-urlencoded | multipart/form-data | text/plain | Media Type as per RFC 2045" CLASS = "class name(s)" METHOD = "GET | POST" STYLE = "style information" TARGET = "_blank | frame name | _parent | _self | _top" NAME = "string" |
EVENTS onclick ondblclick onkeydown onkeypress onkeyup onmousedown onmousemove onmouseout onmouseover onmouseup onreset onsubmit |
ACTION This attribute contains the URL of the server program, which will process the contents of the form. Some browsers may also support a mailto URL, which may mail the results to the specified address. ENCTYPE This attribute indicates how form data should be encoded before being sent to the server. The default is application/x-www-form-urlencoded. This encoding replaces blank characters in the data with a + and all other nonprinting characters with a % followed by the character's ASCII HEX representation. The multipart/form-data option does not perform character conversion and transfers the information as a compound MIME document. This must be used when using <INPUT TYPE="FILE">. It may also be possible to use another encoding like text/plain to avoid any form of hex encoding which may be useful with mailed forms. CLASS See Cascading Style Sheets (CSS) Information. METHOD This attribute indicates how form information should be transferred to the server. The GET option appends data to the URL specified by the ACTION attribute. This approach gives the best performance, but imposes as size limitation determined by the command line length supported by the server. The POST option transfers data using a HTTP post transaction. This approach is more secure and imposes no data size limitation. STYLE See Cascading Style Sheets (CSS) information. TARGET In documents containing frames, this attribute specifies the target frame to display the results of a form submission. In addition to named frames, several special values exist. The _blank value indicates a new window. The _parent value indicates the parent frame set containing the source link. The _self value indicates the frame containing the source link. The _top value indicates the full browser window. NAME This attribute specifies a name for the form and can be used by client-side programs to reference form data. |
| Back to Top |