Forms create an interface for the user to select options and submit data back to the web server. <button>...</button> Usage | Creates a button. | Start/End Tag | Required/Required. | Attributes | %coreattrs, %i18n, %events. | | name="..."The button name. | | value="..."The value of the button. | | type="..."The button type (button, submit, reset). | | disabled="..."Sets the button state to disabled. | | tabindex="..."Sets the tabbing order between elements with a defined tabindex. | | onfocus="..."The event that occurs when the element receives focus. | | onblur="..."The event that occurs when the element loses focus. | Empty | No. |
<fieldset>...</fieldset> Usage | Groups related controls. | Start/End Tag | Required/Required. | Attributes | %coreattrs, %i18n, %events. | Empty | No. |
<form>...</form> Usage | Creates a form that holds controls for user input. | Start/End Tag | Required/Required. | Attributes | %coreattrs, %i18n, %events. | | action="..."The URL for the server action. | | enctype="..."Specifies the MIME (Internet media type). | | onsubmit="..."The intrinsic event that occurs when the form is submitted. | | onreset="..."The intrinsic event that occurs when the form is reset. | | target="..."Determines where the resource will be displayed (user-defined name, _blank, _parent, _self, _top). | | accept-charset="..."The list of character encodings. | | method="..."The HTTP method (post or get). | Empty | No. |
<input> Usage | Defines controls used in forms. | Start/End Tag | Required/IllegalSee note for XHTML 1.0 requirements. | Attributes | %coreattrs, %i18n, %events. | | type="..."The type of input control (text, password, checkbox, radio, submit, reset, file, hidden, image, button). | | name="..."The name of the control (required except for submit and reset). | | value="..."The initial value of the control (required for radio and checkboxes). | | checked="..."Sets the radio buttons to a checked state. | | disabled="..."Disables the control. | | readonly="..."For text password types. | | size="..."The width of the control in pixels except for text and password controls, which are specified in number of characters. | | maxlength="..."The maximum number of characters that can be entered. | | src="/books/2/631/1/html/2/..."The URL to an image control type. | | alt="..."An alternative text description. | | usemap="..."The URL to a client-side imagemap. | | tabindex="..."Sets the tabbing order between elements with a defined tabindex. | | onfocus="..."The event that occurs when the element receives focus. | | onblur="..."The event that occurs when the element loses focus. | | onselect="..."Intrinsic event that occurs when the control is selected. | | onchange="..."Intrinsic event that occurs when the control is changed. | | accept="..."File types allowed for upload. | Deprecated | align="..."Controls alignment (left, center, right, justify). | Empty | Yes. | Notes | In XHTML 1.0, this tag should take the XML form of <input /> to ensure compatibility with older browsers. |
<isindex> Usage | Prompts the user for input. | Start/End Tag | Required/IllegalSee note for XHTML 1.0 requirements. | Attributes | %coreattrs, %i18n. | Deprecated | prompt="..."Provides a prompt string for the input field. | Empty | Yes. | Notes | This field is deprecated in favor of actual form controls. |
<label>...</label> Usage | Labels a control. | Start/End Tag | Required/Required. | Attributes | %coreattrs, %i18n, %events. | | for="..."Associates a label with an identified control. | | disabled="..."Disables a control. | | accesskey="..."Assigns a hotkey to this element. | | onfocus="..."The event that occurs when the element receives focus. | | onblur="..."The event that occurs when the element loses focus. | Empty | No. |
<legend>...</legend> Usage | Assigns a caption to a fieldset. | Start/End Tag | Required/Required. | Attributes | %coreattrs, %i18n, %events. | | accesskey="..."Assigns a hotkey to this element. | Deprecated | align="..."Controls alignment (left, center, right, justify). | Empty | No. |
<option>...</option> Usage | Specifies choices in a select element. | Start/End Tag | Required/Optional (HTML); Required/Required (XHTML 1.0). | Attributes | %coreattrs, %i18n, %events. | | selected="..."Specifies whether the option is selected. | | disabled="..."Disables control. | | value="..."The value submitted if a control is submitted. | Empty | No. |
<select>...</select> Usage | Creates choices for the user to select. | Start/End Tag | Required/Required. | Attributes | %coreattrs, %i18n, %events. | | name="..."The name of the element. | | size="..."The width in number of rows. | | multipleAllows multiple selections. | | disabled="..."Disables the control. | | tabindex="..."Sets the tabbing order between elements with a defined tabindex. | | onfocus="..."The event that occurs when the element receives focus. | | onblur="..."The event that occurs when the element loses focus. | | onselect="..."Intrinsic event that occurs when the control is selected. | | onchange="..."Intrinsic event that occurs when the control is changed. | Empty | No. |
<textarea>...</textarea> Usage | Creates an area for user input with multiple lines. | Start/End Tag | Required/Required. | Attributes | %coreattrs, %i18n, %events. | | name="..."The name of the control. | | rows="..."The width in number of rows. | | cols="..."The height in number of columns. | | disabled="..."Disables the control. | | readonly="..."Sets the displayed text to read-only status. | | tabindex="..."Sets the tabbing order between elements with a defined tabindex. | | onfocus="..."The event that occurs when the element receives focus. | | onblur="..."The event that occurs when the element loses focus. | | onselect="..."Intrinsic event that occurs when the control is selected. | | onchange="..."Intrinsic event that occurs when the control is changed. | Empty | No. | Notes | Text to be displayed is placed within the start and end tags. |
|