

The elements used to create controls generally appear inside a FORMĮlement, but may also appear outside of a FORM element declaration when they are

object controls Authors may insert generic objects in forms such that associated values are The INPUTĮlement is used to create a hidden control. Information between client/server exchanges that would otherwise be lost due to Authors generally use this control type to store hidden controls Authors may create controls that are not rendered but whose values are The INPUT element is used to create a file file select This control type allows the user to select files so that their contents The input text becomes the control's current TEXTAREA element creates a multi-line input control. INPUT element creates a single-line input control and the text input Authors may create two types of controls that allow users to input text. The SELECTĮlement creates a menu, in combination with the Menus Menus offer users options from which to choose. Radio buttons that one is initially "on". Since user agent behavior differs, authors should ensure that in each set of

`CHECKED', then the user agent must check the first radio button of the set If none of the elements of a set of radio buttons specifies Since existing implementations handle thisĬase differently, the current specification differs from RFC 1866 ( section 8.1.2.4), which states:Īt all times, exactly one of the radio buttons in a set is checked. "on", user agent behavior for choosing which control is initially "on" is If no radio button in a set sharing the same control name is initially INPUT element is used to create a radio button control. Is switched "on", all others with the same name are switched "off". The INPUT element is used to create aīuttons Radio buttons are like checkboxes except that when several share the sameĬontrol name, they are mutually exclusive: when one Thus, for example, checkboxes allow users to select several Several checkboxes in a form may share the sameĬontrol name. When a form is submitted, only "on" checkbox controls can A switch is "on" when the control element's checkedĪttribute is set. Authors should note that the BUTTONĮlement offers richer rendering capabilities than the INPUTĬheckboxes Checkboxes (and radio buttons) are on/off switches that may be toggled by Please consult the definitions of these elements for details about Occurs (e.g., the user presses the button, releases it, etc.), the associatedĪuthors should specify the scripting language of a push button scriptĪuthors create buttons with the BUTTON element or the INPUTĮlement. Have client-side scripts associated with theĮlement's event attributes.

A form may contain more than one submitīuttons: When activated, a reset button resets all controls to theirīuttons: Push buttons have no default behavior. Submit buttons: When activated, a submit button submits a form. HTML defines the following control types: buttons Authors may create three types of buttons: Those controls for which name/value pairs are Paired with their current value and these pairs are When a form is submitted for processing, some controls have their name IfĪ control does not have an initial value, the effect of a form reset on that Thus, whenĪ form is reset, each control's current value is reset to its initial value. Thereafter, the control's current value may be modified throughĪ control's initial value does not change. The control's "current value" is first set to the Implementation (i.e., it lies outside the scope of this specification). TEXTAREA element is given by its contents, and the initial value ofĪn OBJECT element in a form is determined by the object Value" may be specified with the control element's Information about initial values and possible constraints on values imposed by Please consult the definition of each control for The scope of the name attribute for aĬontrol within a FORM element is the FORM element.Įach control has both an initial value and a current value, both of whichĪre character strings. 17.2 ControlsĪ control's "control name" is given by its Information about forms in the subsections on form display issues. This specification includes more detailed Menu items, etc.), before submitting the form to an agent for processing (e.g., Generally "complete" a form by modifying its controls (entering text, selecting (checkboxes, radio buttons, menus, etc.), and labels on those controls.
