<BUTTON> — NN n/a IE 4 HTML 4
End Tag: Required
is patterned after the
INPUT element (of types
button, submit, and reset) but carries some extra powers,
particularly when used as a submit-type button. Content for the
button’s label goes between the element’s start and end
tags, rather than being assigned as an attribute. Other elements can
be used to generate the label content, including an
IMG element if so desired (although client-side
image maps of such images are strongly discouraged by the W3C).
Although you can assign a style sheet to a
element, you can also wrap the label content inside an element (such
SPAN) and assign or override style rules just
for that content. Both style sheet mechanisms permit the button label
to use custom fonts and styles.
BUTTON element is assigned a
submit, the browser
submits the button’s
VALUE attributes to the server as a name/value
pair, like other form elements. No special form handling is conveyed
BUTTON when other types are specified.
In theory, a
BUTTON element should be embedded
FORM element. In practice, IE 4 has no
problem rendering a free-standing
This might be acceptable when no related form elements (such as text
boxes) need to be referenced by scripts associated with the button.
Some scripting shortcuts (passing
references as parameters) simplify the scripted interactivity between
The W3C ...