Tag Reference - form
Description
Attributes
accept-charset
This is a list of character sets, as defined in RFC 2045, which must be accepted by the server processing the form.
action
Specifies the location of the page to submit the form to. This is typically a server-side script, ISAPI DLL or other dynamic page.
class
The CSS style class to be applied to this tag. This could be used, for example, to create a style for "important" items, using a line in the style sheet as below:
.important { font-color: red }
This can be applied to the tag as follows:
<b class="important">This is important.</b>
.important { font-color: red }
This can be applied to the tag as follows:
<b class="important">This is important.</b>
dir
Overrides the direction of the text from the standard direction. "rtl" displays the text from right to left, "ltr" from left to right.
enctype
Determines how to encode the form information. Default is application/x-www-form-urlencoded
id
A unique alphanumeric identifier used to identify this object/tag. This identifier can be used in scripting languages to refer to the tag or object.
lang
The language of the text enclosed by this tag, as defined in RFC 1766 (eg en-gb for British English).
language
In Microsoft's implementation, sets the language for the scripts defined in the tag's event handlers.
method
Determines whether to send the form data as part of the URL ("get") or as a data stream ("post"). The "post" method is generally preferred, although for some purposes "get" can be better - when the form is submitted as part of the URL (following a question mark, ?) the resultant page can be bookmarked/added to favourites. This is not possible with "post".
name
Defines a name for this tag - in <a> tags it may be used in a hyperlink to jump directly to the tag's location.
style
Inline style-sheet information.
target
Specifies the target window or frame for the hyperlink - the linked document is displayed in the name window. "_blank" creates a new window, "_parent" loads the file into the parent frame, "_top" loads the file into the topmost frame (ie the main browser window). "_self" is usually the default (unless overriden by <base target=""> and loads the linked file into the current frame. When set in the <base> tag, the "target" attribute specifies the default target frame or window for all links on the page.
title
Advisory text for this tag - this could define an abbreviation or acronym, explain where a link goes or provide some other useful description.
